kick it on DotNetKicks.com   Shout it  

Debugging Custom Report Item controls for Sql Server Reporting Services

When you are developing a control which inherits from CustomReportItem for Sql Server Reporting Services (SSRS) you will certainly want to debug your code. The documentation is shoddy and at best incomplete, and the examples are poorly explained. So being able to debug your control is paramount to your success.

The way to setup debugging follow these steps:

  1. Open the project properties for your custom report item (right click project - Properties...)
  2. Set debug properties (Click "Debug" tab on the left)
  3. Set start action (under start action click "Start External Program")
  4. Browse for DevEnv.exe (C:Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe)
  5. Set command line arguments (enter the path to your test solution - a reporting services project)
  6. Save your property changes

Tags: , , , ,

kick it on DotNetKicks.com   Shout it  

Feedback

# re: Debugging Custom Report Item controls for Sql Server Reporting Services

Gravatar Does the debugging still work the same with VS 2008 and SSRS 2008? I have been unable to get this to work properly. I set the startup program and it does call it, but it seems to be using the dll in the assemblies folder instead of my currently running project.

Any help is greatly appreciated!

Thanks 12/22/2009 12:43 PM | Brian

# re:

Gravatar I haven't tried it in VS 2008 so I can't really answer that. I did this so long ago that I no longer have the source code or the setup, I wish I could be more help. 1/13/2010 4:41 PM | MarkJMiller

Post a comment





 

Please add 7 and 1 and type the answer here:

 

 

Copyright © Mark J. Miller