Posted 6 May 2024, 12:32 pm EST
When exporting a report to JPEG, it will create files with naming convention “ActiveReports###.jpeg” Is there any way to have custom file names when exporting?
Forums Home / ActiveReports / General Discussion
Posted by: bnguyen on 6 May 2024, 12:32 pm EST
Posted 6 May 2024, 12:32 pm EST
When exporting a report to JPEG, it will create files with naming convention “ActiveReports###.jpeg” Is there any way to have custom file names when exporting?
Posted 7 May 2024, 4:52 am EST
Hi Brian,
To change the starting name i.e. in your example ‘ActiveReports###.jpeg’ to change ‘ActiveReports’ you can specify your desired name in the ‘FileStreamProvider’ class.
However, the reports have multiple pages, and therefore by default the number ### is added in front of the name, in case you do not want the particular format of the numbers you can access the directory after exporting and change the format as per your requirements.
Please find attached a sample implementing the same.
Regards,
Anand