Change Telerik subreport path

I have a problem with Telerik Reporting. I defined the main report in the trdx file. It contains a subreport, also defined in the trdx file. It works fine in the designer, but when I posted this report on my website, I get an error message:"An error has occurred while processing SubReport 'company_address': Could not find file 'something\Organizers.trdx'. "

It searches for a report in the default working directory of my web application, but I save my identity information in different folders. Can I change it programmatically? I do not want the hardcode in the designer to indicate the path for the subtitle (and I do not know if this is possible at all).

A few words about how I use these reports. I have an ASP.NET application. I look at all the * .trdx files in this folder and I deserialize them using ReportXmlSerializer. Everything is working fine, except for reports with signatures.

Do you have any ideas how I can change the path to a subreport if there is one in the report?

+4
source share

Source: https://habr.com/ru/post/1530613/


All Articles