print dialog show twice when click print button

4 posts, 1 answers
  1. shen
    shen avatar
    2 posts
    Member since:
    Oct 2015

    Posted 27 Nov 2019 Link to this post

    Hello,

    I'm using Reporting R3 2016 10.2.16.1025.

    in IE browser, print dialog show at the first time, and I close dialog or print to printer, the dialog will show again,

    and I try again, the dialog is really closed.

     

     

    at function printDesktop, I'm trying to write as follow, 

                    setTimeout(function () {
                        document.body.removeChild(iframe);
                    }, 3000);

    It works at Adobe Reader version 19.021.20056, earlier version is not work.

    It seems not a good solution, Do you have any idea?   Thanks.

     

     

  2. Todor
    Admin
    Todor avatar
    493 posts

    Posted 29 Nov 2019 Link to this post

    Hello shen,

    I tested locally to print from the Html5 Report Viewer of Telerik Reporting R3 2016 SP1 (10.2.16.1025) in IE 11.678.17763.0. In all my tests the reports were printed correctly, with the print dialog opened on the Print button click and closed after printing, canceling the print or closing the dialog.

    Note that printing from the browser is using the PDF plug-in printing functionality. Our viewer invokes the PDF plug-in print dialog via special code. For more details, you may check the Printing Reports article. My IE browser is using Adobe PDF Reader 11.0.12.18 to manage PDF files.

    Can you share the exact version of the browser and what PDF plug-in it utilizes when experiencing the problem?

    Does the issue occur with our latest version?

    Regards,
    Todor
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. shen
    shen avatar
    2 posts
    Member since:
    Oct 2015

    Posted 04 Dec 2019 in reply to Todor Link to this post

    Hello Todor,
    I had compared this Project with another Project with Telerik version 9.2.15.1105.
    I find that the problem is in my Web.config

    <Telerik.Reporting>
    <Extensions>
      <Render>
    <Extension name="PDF" description="PDF Description">
      <Parameters>
    <Parameter name="JavaScript" value="this.print({bUI: true, bSilent: false, bShrinkToFit: true});" />  => this line cause the problem.
    <Parameter name="ViewerPrintScaling" value="AppDefault" />
      </Parameters>
    </Extension>
      </Render>
    </Extensions>
    </Telerik.Reporting>

     

    Thank you for your kind assistance.

  4. Answer
    Todor
    Admin
    Todor avatar
    493 posts

    Posted 06 Dec 2019 Link to this post

    Hi shen,

    Indeed, this code duplicates the JavaScript code we inject in the generated PDF when printing the report from the Web Viewers - see Printing Reports. The code invokes the browser's PDF plugin printing dialog. This explains why the print dialog is shown twice.

    Regards,
    Todor
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top