Nathan,
Are you using iText to do the conversion from HTML to PDF?


Yes.


Can you share any examples of your method?


We create an HTML template for each report which may include multiple
layouts (header, detail, summary totals, footers, etc.). Templates
generally reference a common style sheet.

We use RPG to perform "field" substitutions and generate HTML stream files.
Report programs use procedures from a common service program to streamline
the interface.

The common service program includes a procedure which transforms the HTML
stream file to a PDF version.

Reports are defined in DB tables, including parameters which may be used to
filter SQL result sets. Most of our reports reference data from SQL Views.

Most report procedures are called from a generic utility which provides
prompting for record selection criteria prior to calling report procedures.

Here's a link to an example of an RPG service program, which assists with
parameter prompting, and generates a school course catalog.

http://code.midrange.com/9b21420e03.html

HTH,

Nathan.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].