Support Article
Report cell borders are not rendered in exported PDF
SA-17202
Summary
When a report is exported to PDF, the cell borders are only rendered in the PDF for cells that have values.
Error Messages
Not Applicable.
Steps to Reproduce
- Create a Report Definition.
- Exercise the option Export to PDF.
- Observe that the cell borders are only rendered in the PDF for cells that have values.
Root Cause
Configuration issue after exporting the report to PDF.
Resolution
Install HFix-24251.
After installing the Hfix follow below steps to export PDF:
1. The RD which is to be exported, check the checkbox "Ignore application Skin when exporting to PDF" in DataAccess tab.
2. Modify pyReport_ExportToPdfStyles.
3. Replace the text of pyReport_ExportToPdfStyles with below.
/* This css is to customize the styles while doing reports export to pdf this style rule will be picked up when you check the RD rule dataaccess "Ignore application Skin when exporting to PDF" check box to improve performace of Export to pdf functionality */
table.gridTable{
border-left: 1px solid black !important;
}
table.gridTable td {
border-width: thin !important;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) !important;
}
div.gridDefault div.default th.cellCont {
border-width: thin !important;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) !important;
}
.fontFamily{
font-family:'sans-serif' !important;
font-size:13px !important;
text-align:left !important;
}
div.gridDefault div.default tr.cellCont td.gridCell, div.gridDefault div.default tr td.rowHandleHead, div.gridDefault div.default{
border-width: 1px !important;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) !important;
}
div.gridDefault tr.cellCont td.gridCell{
border-width: 1px !important;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) !important;
}
div.gridDefault div.default div#report_body tr td {
border-width: thin !important;
border-right :1px solid !important;
border-bottom :1px solid !important;
border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) !important;
}
div.gridDefault div.default div#report_body th{
border-top :1px solid black !important;
border-bottom :1px solid black !important;
border-right :1px solid black !important;
}
div#report_body table{
border-left: 1px solid black !important;
}
Published January 31, 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.