|
Jake, 1) If the users just want columnar data and don't care about pretty headings and subtotals, then Google for "sql2xls rpg". You might be able to ditch the RPG entirely and generate an .xls from this product. 2) If the users want pretty headings and subtotals, you can write directly to an IFS file in .xls format from the RPG. Replace the except/write opcodes with calls to POI classes. As mentioned, Scott Klement's examples cannot be beat. 3) If the users want to control the format based on some output determination rules, then consider leaving the 'O' specs in place and using a conversion tool like spoolfactory. Consider that some users automatically ask for Excel because that is all they know how to use. Some reports work better as .pdfs. We've used all those techniques, depending. JK > > All; > > I have a RPGLE program which produces a report. Is there any way I can > produce the report in MS Excel rather than a report using O - Specs. I > could go the java route and use jxl or hssf as an API but I do not want to > rewrite the whole code in java again. Any suggestions/input will be much > appreciated. > > Cheers, > > Jake.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.