× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Thu, Dec 19, 2013 at 10:05 AM, Steinmetz, Paul <PSteinmetz@xxxxxxxxxx> wrote:
Create Excel spreadsheet on iSeries unattended in batch mode
Is there a tool or API to do this.

The choices are numerous. Maybe we should accumulate them into a wiki article.

A popular choice is SQL2POI or SQL2JXL:

http://www.mcpressonline.com/microsoft/techtip-excel-flies-higher-with-jexcelapi.html

Probably most of the Java-only or RPG-and-Java solutions are based on
POI. I can't name them all. Others will chime in I'm sure.

My favorite way to make Excel files on the i, because I'm a Python
programmer, is iSeriesPython plus either xlwt (if .xls is required) or
XlsxWriter (if .xlsx is acceptable).

http://www.iseriespython.com
https://pypi.python.org/pypi/XlsxWriter
https://pypi.python.org/pypi/xlwt

I've built a program to automatically copy data from a physical file
to an Excel file using xlwt (callable from CL, no Python knowledge
required):

https://bitbucket.org/jky/cpytoxlsf.py

It has several niceties that most tools don't have, such as fairly
accurate automatic column sizing and a slew of potential customization
options based on "hints" provided by the field edit codes and
description text. (I will be posting a corresponding cpytoxlsx.py in
the near future for making .xlsx files using the same interface.)

There are similar Excel libraries for PHP, so if you can't be sold on
Python but are still open to dynamic languages, there's definitely
PHP.

John

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.