Goto: 4C Home | 4C Docs | PDFReport Home 4C PDFReport - Example Programs

4C PDFReport - Example Programs

The simplest example PDFReport program is one that displays on a single page without using any dynamic positioning of fields. All fields are part of a single main PDFReport and the report is run from the InitPCL by calling the sys.run_rpt() System PCL.

The pdfr.demo.1 program in the Demo application is an example of a simple PDFReport program. It displays the fields from a single rcd in the language_info file. It is started by a Panel program, pdfr.lang.sel, that allows you to select 1 rcd and then by clicking the CreateAndViewPDF cmdbtn it will call the pdfr.demo.1 program passing in lang_name and the value of 2 flags, one that you can set to show the row/column grid as part of the PDF and other to call up a program to display info about the PDFReport before displaying the PDF document. The PDFReport displays a hdr and 4 vertically aligned data fields. The data fields each display with a side label and in a different row.

Here are some important things to notice about the PDFReport that you can see by browsing the Program Characteristics, Display Fields and PCLs. Some other points worth mentioning about pdfr.demo.1 are

Back to Top