Domanda

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

È stato utile?

Soluzione 2

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 ?

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top