Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set other name instead of default pdf file name in report viewer while exporting it?

Tags:

c#

asp.net

i have used report viewer for one of my website page and it's working fine but when i go for export , the exported file name is report4.pdf ,but i don't want that i want to give some other name instead of report4.pdf. how can i do this, Please help.

like image 627
Merajuddin Ansari Avatar asked Dec 19 '22 07:12

Merajuddin Ansari


1 Answers

ReportViewer1.LocalReport.DisplayName = "Your Other Name Goes Here";

it's only works with ExportDialog not in PrintDialog.

like image 54
Dhavaloo Avatar answered Dec 29 '22 00:12

Dhavaloo