When I try the examples to download a pdf from chrome, the pdf displays in the viewer but when I click save icon it tries to save with the page name of:
defaultcs.aspx
How can I get it to save/prompt for save as PDFDocument.pdf?
Marty
5 Answers, 1 is accepted
0
Hi Marty,
Could you please let me know whether you have experience this behavior with our live examples? Generally you can try enabling OpenInNewWindow property in the ExportSettings. Nevertheless I would appreciate if you can provide a small runnable sample where the issue can be observed in order to investigate the cause for this issue further.
Regards,
Kostadin
Telerik
Could you please let me know whether you have experience this behavior with our live examples? Generally you can try enabling OpenInNewWindow property in the ExportSettings. Nevertheless I would appreciate if you can provide a small runnable sample where the issue can be observed in order to investigate the cause for this issue further.
Regards,
Kostadin
Telerik
0

moegal
Top achievements
Rank 1
answered on 21 May 2015, 10:49 AM
Kostadin,
I am experiencing the same with the online examples. I will set up an example.
Marty
0
Hello Marty,
Could you please send a link to the example that you are trying to export. Also which browser you are using. Could you please try with the three most popular browsers (FireFox, IE, Chrome) and let me know whether you have experience the same behavior in all of them?
Regards,
Kostadin
Telerik
Could you please send a link to the example that you are trying to export. Also which browser you are using. Could you please try with the three most popular browsers (FireFox, IE, Chrome) and let me know whether you have experience the same behavior in all of them?
Regards,
Kostadin
Telerik
0

moegal
Top achievements
Rank 1
answered on 29 May 2015, 01:14 PM
It works in IE11 and Firefox but not Chrome on Win7 or win8.1. See the screen shot to explain.
The example I am trying is:
http://demos.telerik.com/aspnet-ajax/pdfprocessing/overview/defaultcs.aspx
Click the "Download Document" button and it will put in the incorrect File name and type.
0
Hi Marty,
I examined the live example and i noticed that there is a typo in the Response.AppendHeader. Here is the current code.
And the correct one is without colon.
I will make sure that the issue will be resolved in the next update of the demos.
Regards,
Kostadin
Telerik
I examined the live example and i noticed that there is a typo in the Response.AppendHeader. Here is the current code.
Response.AppendHeader(
"Content-Disposition:"
,
"attachment; filename=PdfDocument.pdf"
);
Response.AppendHeader(
"Content-Disposition"
,
"attachment; filename=PdfDocument.pdf"
);
I will make sure that the issue will be resolved in the next update of the demos.
Regards,
Kostadin
Telerik