Last post May 11, 2016 06:52 AM by Weibo Zhang
May 10, 2016 05:04 PM|spook_man|LINK
I have the export to only PDF working properly. I have the filename being saved properly using the ReportViewer1.LocalReport.DisplayName = String.Format property.
But, I would like to add a hypen to the filename, but when the save as dialog box opens, it shows the hyphen as %2D.
Any ideas on how to turn off the HTML encoding so the filename can have a hyphen and other characters?
May 11, 2016 06:52 AM|Weibo Zhang|LINK
I have made a demo based on
this article. When I change the display name with a “-”, it still could be exported an excel file with the normal filename that contains the “-”. The following images you could have a look.
Or, you could try using below code that’s in the following link to save the file. I have tested with a “-” filename, it still works.