Changing File Name When Exporting

1 Answer 142 Views
Report Viewer - WPF
Test
Top achievements
Rank 1
Test asked on 14 Aug 2023, 06:34 PM

This is using c sharp and wpf. Without using the report designer I need to change the suggested file name that comes up once you choose a file format to export as and it opens the file dialog. Currently my report displays userReport1 as the name. I want to input two strings values of id numbers as the file name instead.

Alternatively if I was to use parameters in the designer to change the name how would I go about that?

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 17 Aug 2023, 10:17 AM

Hello,

Thanks for reaching out.

If you want to change the suggested file name in a file dialog you can use the ReportViewer ExportEnd event. 

Here is a helpful example of how to do this - Using ExportEnd event to customize SaveFileDialog

Hope to find the article helpful and if you have any other questions don't hesitate to contact us.

Regards, Ralitsa Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Report Viewer - WPF
Asked by
Test
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or