Nathan,

Thanks for the example. Would you be willing to share the code that you are using to interact with iText to do the conversion? That is the part I'm not sure about since my Java knowledge is limited. Maybe there is an example on the web already that you could point me to?

Dean Eshleman
Software Development Architect

On 8/14/2015 1:20 PM, Nathan Andelin wrote:

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.

______________________________________________________________________
Confidentiality Notice: This information is intended only for the individual or entity named. If you are not the intended recipient, do not use or disclose this information. If you received this e-mail in error, please delete or otherwise destroy it and contact us at (800) 348-7468 so we can take steps to avoid such transmission errors in the future. Thank you.

This thread ...


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].