This is a migrated thread and some comments may be shown as answers.

download as pdf in chrome

5 Answers 77 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
moegal
Top achievements
Rank 1
moegal asked on 13 May 2015, 12:05 AM

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

Sort by
0
Kostadin
Telerik team
answered on 15 May 2015, 10:07 AM
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
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
Kostadin
Telerik team
answered on 26 May 2015, 07:01 AM
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
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
Kostadin
Telerik team
answered on 03 Jun 2015, 07:10 AM
Hi Marty,

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");
And the correct one is without colon.
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
Tags
PdfProcessing
Asked by
moegal
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
moegal
Top achievements
Rank 1
Share this question
or