Page 1 of 1

Sub reports with relative file path

Posted: Thu Nov 09, 2023 5:33 pm
by ctusch
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.

Re: Sub reports with relative file path

Posted: Sat Nov 11, 2023 9:39 am
by Lech Kulikowski
Hello,

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

Posted: Mon Nov 13, 2023 8:21 am
by ctusch
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).

Re: Sub reports with relative file path

Posted: Tue Nov 14, 2023 3:30 pm
by Lech Kulikowski
Hello,

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

Posted: Tue Dec 26, 2023 5:58 am
by Toms
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.

Re: Sub reports with relative file path

Posted: Wed Dec 27, 2023 8:08 am
by Lech Kulikowski
Hello,

Thank you for the suggestion.

Re: Sub reports with relative file path

Posted: Thu Dec 28, 2023 9:38 am
by Lech Kulikowski
Hello,

Thank you for the suggestion.