Adjusting Report Name at runtime

Stimulsoft Reports.NET discussion
Post Reply
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Adjusting Report Name at runtime

Post by Artimidor »

When a user saves the report as PDF the Report Name (or its Alias, if available) is used for the filename.

However, this title doesn't consider other languages or e.g. a specific filter that is used to print the report. Is it possible to set the Report Name at runtime? E.g. to set it to the variable used for the report title, which is already properly translated. If so, where?

If that's not possible: How else would you suggest customizing the report file name to reflect different languages?
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Adjusting Report Name at runtime

Post by Lech Kulikowski »

Hello,

You can set it in the events. Or use the Globalizations string to localize depending on the Culture.

Thank you.
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: Adjusting Report Name at runtime

Post by Artimidor »

How can the report title be set in the events? And which event would you suggest? Can you provide an example?
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Adjusting Report Name at runtime

Post by Lech Kulikowski »

Hello,

In the BeginRender event.

Thank you.
Attachments
Screenshot 2023-07-17 213002.png
Screenshot 2023-07-17 213002.png (120.33 KiB) Viewed 555 times
Post Reply