Open print dialog when report print button is clicked

8 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 27 Feb 2014 Link to this post

    Hi

    Is there a way to open the print dialog when you press the print button. Currently it askes if I want to open or save a PDF.

    Andy
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 27 Feb 2014 Link to this post

    Hi Andy,

     We will need some additional information. Which report viewer you use and in which browsers you experience the unexpected behavior?

    Regards,
    Peter
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  3. DevCraft banner
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 27 Feb 2014 in reply to Peter Link to this post

    This  is the web viewer I'm using version 7.2.13.1016.

    The attached image shows the button in question, When I press it it asks if I want to open or save PDF.

    Andy
  5. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 28 Feb 2014 in reply to Andy Green Link to this post

    I'm using IE 11

    Andy
  6. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 28 Feb 2014 Link to this post

    Hello Andy,

    The reason for the issue is the new behavior of the browser described in details in the Compatibility changes in IE11 MSDN article. Currently IE11 represent itself by default with navigator.userAgent property value Mozilla/5.0. Generally we read this property to handle per browser the pdf plugin checks and print operation. Thus this new and unexpected IE 11 behavior causes the report viewer to misrecognize the client browser that results in incorrect PDF plugin resolution and the fallback to the export operation. 

    This issue is already fixed and our recommendation is update your Telerik Reporting installation with the latest official release.

    Regards,
    Peter
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  7. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 28 Feb 2014 in reply to Peter Link to this post

    Thank you, and sorry I should have got the latest version.

    One last thing on this thread, is there a way to change the file name of the printed document. Currently says Telerik..  in the file name in the print dialog. Be nice to use my own.

  8. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 03 Mar 2014 in reply to Andy Green Link to this post

    HI

    I'm still having problems. If I print from my dev I get a different print dialog. From dev I see the actual report content in a preview window. See Image 1.

    If I print from live, I get image 2. but when I print it prints the report container. ie I get the print buttons / nav / export options

    Andy
  9. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 05 Mar 2014 Link to this post

    Hi Andy,

    The Web Forms Report Viewer supports True Printing. The True printing is the only way to support multi-page reports printing in most of the browsers. The True print is rendering the report in PDF with special settings so when the PDF file opens in browser, the PDF plug-in print dialog is invoked. Thus make sure the Adobe PDF plugin is available. For additional information see True Print help article.

    Regards,
    Peter
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Back to Top
DevCraft banner