Friday, March 12, 2010
        Register
   
Product Blog
20

Pre-requisite

  1. DNN 4.55. or higher source version on the development machine
  2. MSBuild.Community.Tasks.msi from http://msbuildtasks.tigris.org/
  3. Visual Studio 2005 with service pack 1 http://msdn2.microsoft.com/en-us/vstudio/bb265237.aspx

After uploading the DNN Reports Source version, you find the source code in the folder [DNN Root]\DesktopModules\Reports. This module source code uses the Web Application Project (WAP) model. The user controls reference the .vb file using syntax CodeBehind. The DNN Reports 5 appears to be developed using Visual Studio 2008. The project file references to VB 9.0. To use it in Visual Studio 2005, change the reference of VB 9.0 to VB 8.0 in the Reports.vbproj. Below are screen shots and steps.  Click on the image to zoom in.

clip_image002 Location of the Reports.vbproj under the desktop\Reports folder
clip_image004 Use notepad.exe to open the file Reports.vbproj .  Change reference of v9.0 to v8.0 in the Reports.vbproj.
clip_image006 To add the Reports project to the solution, right mouse click on the Solution >> Add >> Existing Project

Select Reports.vbproj from the [DNN Root]\DesktopModules\Reports
clip_image008 Security warning

Select 2nd radio button and click Ok
clip_image010 After adding the Reports module to solution, you will see and new project "Reports" added to the solution.

You will also see warnings of missing files and errors of variable not defined.  You can ignore the sql script missing file or right mouse click and remove them.  You must correct the errors related to variable not defined in order to compile/debug the module.
clip_image012 Error variable "I" not defined
clip_image014 To correct the error, define variable "I" as integer
clip_image016 Error variable "field" not defined

clip_image018

To correct the error, define variable "field" as  string

After correcting the errors, setup break point for the page load event in the ViewReports.ascx control in the Reports project (not the one in the DNN DesktopModule\Reports) and hit F5 to run DNN.  You should see the break point stopping.  

 

 

 

 

 

Post Rating

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

Product Links

Privacy Statement  |  Terms Of Use Copyright 2000-2009 InDyne Commercial Products Corporation