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

print dialog show twice when click print button

3 Answers 187 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
shen
Top achievements
Rank 1
shen asked on 27 Nov 2019, 08:13 AM

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.

 

 

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 29 Nov 2019, 12:34 PM

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
0
shen
Top achievements
Rank 1
answered on 04 Dec 2019, 07:56 AM

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.

0
Accepted
Todor
Telerik team
answered on 06 Dec 2019, 12:10 PM

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
Tags
General Discussions
Asked by
shen
Top achievements
Rank 1
Answers by
Todor
Telerik team
shen
Top achievements
Rank 1
Share this question
or