Pro SQL Server 2012 Reporting Services

(sharon) #1

CHAPTER 7  USING CUSTOM .NET CODE WITH REPORTS



  1. Select Debug as the Active Solution Configuration option. Click Close to
    finalize this option choice.

  2. Right-click the project containing your reports from the solution manager and
    select Set as StartUp Project to make sure this project runs first in your
    solution when you start to debug.

  3. Right-click the project containing your reports from the solution explorer
    again, and select Project Dependencies.

  4. In the Project Dependencies dialog box, select the Employee project as the
    dependent project, as shown in Figure 7-14. This will tell Visual Studio that
    your report depends on the custom assembly you have written.


Figure 7-14. ProJect Dependencies dialog box


  1. Click OK to save the changes, and close the Project Dependencies dialog box.

  2. Right-click the Reports project again, and select Properties.

  3. Select StartItem, and set it to the report you want to debug. In this case, select
    the report we have set up to use the custom assembly. The StartItem option
    tells Visual Studio specifically which report to run when you run with
    debugging. Click OK to finalize this choice.

  4. In the Solution Explorer, select the Employee custom assembly project.

  5. Right-click this project and select Properties.

Free download pdf