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

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

  1. Create a data page with two columns say Name and DOB.
  2. In DataTableEditorReport, make use of the fields and a function First day of month of [.DOB].
  3. Summarize Name field with Count.
  4. For DOB field, select "Display values across columns".
  5. 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

Was this useful?

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