0
votes

I am learning SSRS from a book. The book tells me to modify a simple existing report as follows -

  1. Create a new Form (windows forms) and use the RDLC file of the original report.
  2. Use the report wizard to select data source and eventually create your report.

When I try to run the modified report, visual studio shows me the old one instead. How do I fix this ?

old report -

enter image description here

The modified report -

enter image description here

When I rebuild the solution and debug it and try to run modified report, it shows me the old report instead.

enter image description here

EDITS -

My project structure -

enter image description here

2
correct me if I am wrong this is not ssrs 2008 its 2005? - M.Ali
@M.Ali - it is ssrs 2008 for sure. I am using bids/vs 08 and sql server 2008 and book for 08. - Steam
hit the little refresh button on the report preview, that shows up in 2012 as well, that usually fixes it. - Daniel E.
@DanielE. - I clicked on the refresh button shown in the third image. It does not help. - Steam
if you are debugging is it starting the "Starting report" which would still be report 1? Can you deploy the report and see if it actually uses the updated report? I have not used SSRS 2008 extensively, this is just a guess. - Daniel E.

2 Answers

0
votes

I came across this problem and was able to resolve it by removing the cache data for the reports.

-1
votes

Please see the edited question which has the project structure. I tried a workaround that works -

This happens because of start item setting in visual studio. To change this -

solution explorer > right click your vb (winforms) project > properties 
> application side-tab > Startup form: Form2 (ie the form that points to 
modified report)

Rebuild the project and you will get the modified form/report instead of the original one. The problem with this approach is that you will have to change this all the time when you add a new form or report to your project.

Can someone help me to fix this issue ?