Sub reports with relative file path
Sub reports with relative file path
Hey, I cannot find a way to embed a sub report using a relative path to a local file. Only absolute paths seem to work. The reason I need this is so that the report files can be moved to another directory.
-
- Posts: 6312
- Joined: Tue Mar 20, 2018 5:34 am
Re: Sub reports with relative file path
Hello,
Could you explain your task in more detail? How do you run the report - is it viewer, designer, from code, etc?
Thank you.
Could you explain your task in more detail? How do you run the report - is it viewer, designer, from code, etc?
Thank you.
Re: Sub reports with relative file path
We have reports that we deliver to our customers. They are referencing sub reports. The sub reports always are in the same folder in relation to the main report. But the absolute path can be different for every customer installation. That's why the path to the sub report cannot be saved as an absolute path, but must be relative instead. But Stimulsoft cannot resolve relative paths, I think because it's using WebClient internally even for local files.
We run the report both in the designer as well as from code (to export it to PDF).
We run the report both in the designer as well as from code (to export it to PDF).
-
- Posts: 6312
- Joined: Tue Mar 20, 2018 5:34 am
Re: Sub reports with relative file path
Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
Re: Sub reports with relative file path
Hello,
Your situation with Stimulsoft reminds me a bit of the way one organizes personal letters and intimate texts that are often stored in specific folders, and their location changes depending on the context, but their value and content remain constant. Perhaps a similar approach might be useful here - considering sub-reports as independent but related elements, whose relative relationship needs to be dynamically resolved, much as one would do to find an important personal letter in a set of folders.
Your situation with Stimulsoft reminds me a bit of the way one organizes personal letters and intimate texts that are often stored in specific folders, and their location changes depending on the context, but their value and content remain constant. Perhaps a similar approach might be useful here - considering sub-reports as independent but related elements, whose relative relationship needs to be dynamically resolved, much as one would do to find an important personal letter in a set of folders.
Visit my website here
-
- Posts: 6312
- Joined: Tue Mar 20, 2018 5:34 am
Re: Sub reports with relative file path
Hello,
Thank you for the suggestion.
Thank you for the suggestion.
Re: Sub reports with relative file path
Use relative paths for sub reports in the main report to enable flexible file movement.
Thank you.
Thank you.
-
- Posts: 6312
- Joined: Tue Mar 20, 2018 5:34 am
Re: Sub reports with relative file path
Hello,
Thank you for the suggestion.
Thank you for the suggestion.