In my project I have a report with the name Report1.cs .
Obviously it isn't so easy as it seems to be to rename a report in a ReportLibrary.
Right click with mouse and then rename.
From Report1.cs to "ReportTemperature.cs".
So far so good.
But when I run my project I get a obstinate error.
Please see the attachement.
The funny thing is ...The file does not exist in the folder.
Has anyone experience with this thing?
6 Answers, 1 is accepted
Basically, when you rename the report, then a pop-up window appears if you would like to perform a rename of all references to the code element (check the attached 'RenamePreport' screenshot). If you selected "Yes", it should be fine. If not, click on ctl+F and select Replace in Files. Then in Find what, fill Report1 and in Replace with -> ReportTemperature (check the attached 'FindReplace' screenshot). Select Replace All.
With both approaches, I am able to rename reports and then run them successfully. I am not sure if I understood the issue correctly. Is the ReportTemperature file missing after renaming?
I have done it, who you suggested.
But when I run the project I get an error message that the file "ReportLibrary1.Report1.ressources" could not be found on path
Should I delete the content of this folder?
Basically, the bin and obj folders are usually safe to delete since they are automatically generated when the solution/project is being built by Visual Studio. For that reason, you can delete your Debug folder which is contained in obj. Another thing that you can also try is to Rebuild the project which cleans it and build it again.
Let me know how it goes.
I haven't got any error messages more.
I don't know exactly why, but it works.