syncfusion / JavaScript-Widgets

Syncfusion Essential JavaScript is a comprehensive collection of over 80+ enterprise-grade HTML5 JavaScript components for building modern web applications.
http://www.syncfusion.com/products/javascript
35 stars 36 forks source link

ReportViewer Print and Chrome #18

Open doarrison opened 6 years ago

doarrison commented 6 years ago

Hi, I'm currently having trouble with using the ReportViewer control. Only in Chrome (it works fine on Firefox and Edge) when I click the print button the print dialogue appears before the document body of the new window is loaded causing the print to be of blank pages.

Scanning through ej.web.reportviewer.min.js seems to indicate that the current print method is using a 500ms timeout before calling print. I'm guessing my content didn't load in that time which is causing my problem. Any chance of attaching the print function to the body load event of the new window instead?

YuvarajDevarajan commented 6 years ago

We suspect the mentioned problem occurs when the chrome print dialog opened before completely render the report body. So we have an option to adjust or increase the popup open delay timing in ReportViewer control by using reportPrint event as shown in below code example,

` Githubissues.

  • Githubissues is a development platform for aggregating issues.