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



Hi Bob,

I use Giuseppe Costagliola's free SQL2JXL command, e.g.

SQL2JXL SQLSTMT('select * from MyFile')
TOXLS('/home/pdow/My Spreadsheet.xls')

see *http://tinyurl.com/34nj7pg*

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

Among other things, you can specify a template spreadsheet that has the headers all set up and "prettified".

SQL2JXL SQLSTMT('select * from MyFile')
TOXLS('/home/pdow/test.xls')
FROMXLS('/home/pdow/test template.xls')
SHEETNAME(*DFT)
COLHDRS(*LABEL)
TITLE('My Title')
TITLEALIGN(*CENTER)
LTRIM(*YES)
WRTZEROC(*YES)
FREEZE(*NO)
FITPRT(*NO)
GRID(*YES)
ORIENT(*NONE)
NAMING(*SYS)
TRANBIN(*NO)
DRIVER(*NATIVE)
RMTSYS(LOCALHOST)
USER(*CURRENT)
JDEBUG(*NO)

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /

On 9/29/2010 10:57 AM, Bob Voltz wrote:
Once a month I do the following:

1. Run a query to create a file.

2. Import that file into Excel.

3. Prettify the spreadsheet.

4. Email the prettified spreadsheet to a user.

What is the best way to automate this process?




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.