I use CGIDEV2 to create my spreadsheets. To do this, I first save the
"template" of my sheet as an xml. Then I use the cgidev2 procudures to fill
in the blanks. Works very nicely. If you need some coding examples, let me
know.
Tim
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [
mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of David Foxwell
Sent: Friday, June 15, 2007 5:14 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: EXCEL From RPG applications
Hi.
Our programs are increasingly being used to generate EXCEL spreadsheets
instead of reports. Until recently, we just called a program to copy the i5
file to the IFS as a CSV file.
We now have a small JAVA application that converts the CSV to XLS.
Added to that, we use RPG and JAVA to send the file automatically by email
to the user.
Now I have an application that sends 3 files. The result is 3 different
spreadsheets. I'm having a few problems because I'm having to depend on JAVA
programmers when things don't work properly.
As an alternative, I have created a spreadsheet with a macro that imports
the 3 files as 3 sheets. That way the user only has one spreadsheet to open.
I get the results without depending on any JAVA application and I have
complete control over the presentation, etc.
The problem : I'm generating around 20 000 lines and the macro takes a
minute and a half to work. This is quicker than using the JAVA application
but that runs in batch.
How do I get my spreadsheet to the user only after the macro has been
executed ?
TIA
As an Amazon Associate we earn from qualifying purchases.