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 option not printing the screen, prints only header part

SA-26350

Summary



From the Report Browser, when user opens a report and from Actions when clicked on print, in the print preview only header part is seen and it prints only headers no content is printed.

This was working fine in Pega 7.1.8 version but not working in Pega 7.1.9


Error Messages



Not applicable


Steps to Reproduce


 
  1. Log into application.
  2. Configure the window.print action on the Print button.
  3. Try to print the existing report which contains more records in it in the user portal.
  4. Observe that the report data is not available.


Root Cause



In Pega 7.1.8 the report definition is opened in the new window which contains the report definition specific data, but in Pega 7.1.9 the report definition is opened in the same page in embedded format which causes the failure of window.print action.

Resolution



Perform the following local-change steps:

1. Create the sample CSS file with the below code:

@media print {
    Div#HARNESS_CONTENT, Div.harnessContent , main{
      overflow-y: visible !important;
      overflow-x: visible !important;
      overflow: visible !important;
      width: 100% !important;
      height: 100% !important;
      position: relative !important;
      float: left !important;
      display: block !important;
      page-break-before: always;
      left: 0px !important;
      top: 50px !important;
      clear:both;
    }
 
  html, body {
    height: 100% !important;
    overflow: visible !important;    
  }
 
  aside {
    display :none !important;
    #width: 0px !important;
    #height : 0px !important;
  }
}


2. Now add this CSS file into user portals where we need this Print functionality.

Published August 12, 2016 - Updated October 8, 2020

Was this useful?

75% 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