You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

To generate a PDF from an HTML report you have to configure the next steps:

  1. set the option <generatePdf>true</generatePdf> in the declarations section of the report module
<reports ......>
 <declarations>
   <chartFormat id="chartFormat1"> ....    </chartFormat>
   <summaryFormat id="formatStatusMap"> ....    </summaryFormat>
   <htmlTableFormat id="htmlTableFormat1NL" tableStyle="tableStyle1"> ....    </htmlTableFormat>
   <dateFormat id="dateFormat1"> ...  </dateFormat>
   <numberFormat id="numberFormat1"> ... </numberFormat>
   <generatePdf>true</generatePdf>
   <templateDir>$REPORT_TEMPLATE_DIR$</templateDir>
   <reportsRootDir>$REPORT_ROOT_DIR$</reportsRootDir>
   <reportsRootSubDir>nl/fluvial</reportsRootSubDir>
   <sendToLocalFileSystem>false</sendToLocalFileSystem>
   <timeZone>
     <timeZoneName>CET</timeZoneName>
   </timeZone>
   <locale id="Dutch">
     <language>nl</language>
     <country>NL</country>
   </locale>
 </declarations>
  1. in the global.properties the option REPORT_HTML2PDF_PROGRAM should be defined.
    For example to REPORT_HTML2PDF_PROGRAM=%REGION_HOME%/Modules/Reports/bin/html2pdf.cmd
    See attached the binaries.
  • No labels