Hi,
We've got the same solution on two different machines. I've created Reports folder and added new report there. Everything works perfect. But after that in the second (identical) solution on other machine I've also created Reports folder and then added existing item (my report file). When I'm trying to display it I'm getting "Could not find report definition". As I said. Both solutions are the same.
Is it impossible to copy report files between two projects even thay are the same ?
My code for report viewer is:
ultraReportViewer1.RenderSettings.DefinitionUri = new System.Uri("Project1;component/Reports/" + reportFileName, System.UriKind.RelativeOrAbsolute);
any suggestions ?
regards
When copying a report design (*.igr) from one place to another its Build Action is set to None, please make sure the Build Action of the new file is set to Resource or Content depending on the configuration you are using (default: Resource). Here you can learn more about How to Reference Reports.
Hopefully that will fix your problem.
Regards,
Miguel.