Support Article
Issues in RD display format when exported to PDF
SA-30627
Summary
Users observed issues in Report Definition display format when exported to PDF.
i.e the lines of the grid are not displayed properly. Wherever there is no data, the row/column border does not appear.

Error Messages
Not applicable
Steps to Reproduce
- Create a data page with two columns say Name and DOB.
- In DataTableEditorReport, make use of the fields and a function First day of month of [.DOB].
- Summarize Name field with Count.
- For DOB field, select "Display values across columns".
- Run RD and export to PDF.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform the following local-change:
1. Modify pyExportToPDFCSS.css with code by adding the below piece of code:
table.gridTable {
empty-cells: show;
border-collapse:collapse;
}
2. Modify pyReport_ExportToPdfStyles.css with code:
table.gridTable{
border-left: 1px solid black;
}
table.gridTable td {
border-width: thin;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0);
}
div.gridDefault div.default th.cellCont {
border-width: thin;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0);
}
.fontFamily{
font-family:'sans-serif';
font-size:13px;
text-align:left;
}
div.gridDefault div.default tr.cellCont td.gridCell, div.gridDefault div.default tr td.rowHandleHead, div.gridDefault div.default{
border-width: 1px;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0);
}
div.gridDefault tr.cellCont td.gridCell{
border-width: 1px;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0);
}
div.gridDefault div.default div#report_body tr td {
border-width: thin;
border-right :1px solid;
border-bottom :1px solid;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0);
}
div.gridDefault div.default div#report_body th{
border-top :1px solid black;
border-bottom :1px solid black;
border-right :1px solid black;
}
div#report_body table{
border-left: 1px solid black;
}
table{
empty-cells: show;
border-collapse:collapse;
}
3. Check the check box 'Ignore application skin when exporting to PDF' in Data Access tab of Report definition
Published November 22, 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.