Support Article
Print option not printing the screen, prints only header part
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
- Log into application.
- Configure the window.print action on the Print button.
- Try to print the existing report which contains more records in it in the user portal.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.