|
Date: Fri, 1 May 2015 15:00:35 -0400
Subject: Re: RPG and Excel
From: gallium.arsenide@xxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx
On Fri, May 1, 2015 at 1:46 PM, Thomas Garvey <tgarvey@xxxxxxxxxx> wrote:
First create the spreadsheet in Excel and define the table.
Then use the Klement stuff to find that spreadsheet and write the data into
the table of the spreadsheet, knowing it's row and column definitions
already.
I'll look into it. Thanks for the brainstorm.
If you're open to using other programming languages, it's much easier
than that. For example, I use Python and the XlsxWriter package.
Creating a table with that package is simply
worksheet.add_table('B3:F7')
or, if you have row and column numbers instead of "A1" cell addresses:
worksheet.add_table(2, 1, 6, 5)
You can populate the table cells one by one, row by row (using Python
array-like data structures), or all at once (using a two-dimensional
Python data structure).
Python and XlsxWriter are both free, and not hard to learn. You can
have them both installed on your i in half an hour, if you're slow.
John Y.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.