Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Print preview displays 'Loading label text' on top of document

SA-58059

Summary



Print preview displays 'Loading label text' on top of the document.


Error Messages



Not Applicable.


Steps to Reproduce

  1. In a section include a Print icon
  2. Configure an action set on the icon to launch a harness
  3. Refer the harness that has the content to print
  4. Run the case and click the Print icon


Root Cause



The window.print() method is triggered even before the complete content is loaded from the section. Hence, it displays as 'loading'.


Resolution

Perform the following local-change:

Replace 'window.print();' method with 'window.setTimeout("window.print()", 500);'  in the Harness_Print.js file. This ensures the print preview to loads after all the content is loaded in the section popup.

 

 

Published August 19, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us