download as pdf in chrome

6 posts, 0 answers
  1. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 12 May 2015 Link to this post

    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

     

  2. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 15 May 2015 Link to this post

    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
  3. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 21 May 2015 in reply to Kostadin Link to this post

    Kostadin,

    I am experiencing the same with the online examples. I will set up an example.

    Marty

  4. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 26 May 2015 Link to this post

    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
  5. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 29 May 2015 in reply to Kostadin Link to this post

    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. 

     

  6. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 03 Jun 2015 Link to this post

    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
Back to Top