Welcome! Log In Create A New Profile

Advanced

Query to Excel again!

Posted by Swissstephan 
Swissstephan
Query to Excel again!
December 01, 2008 11:28PM
Hi to all
I'm still struggling with exporting a query to excel.
Which is fastest way?
I can't use loading the query to a screen table and use then tabletoxls since this procedure runs under an automatic Procedure (earlier threadexecute) and i was not able to open a window under these circumstances.
Thanks for all the help
Swissstephan
PETER ZHOU
Re: Query to Excel again!
December 02, 2008 05:43PM
Quote
Swissstephan
Hi to all
I'm still struggling with exporting a query to excel.
Which is fastest way?
I can't use loading the query to a screen table and use then tabletoxls since this procedure runs under an automatic Procedure (earlier threadexecute) and i was not able to open a window under these circumstances.
Thanks for all the help
Swissstephan

Try this method:-
1) Create a report based on this query ( let's called it RPT1 )
2) Use the following commands to call the report ( have a button that called this code )
iPreview(iGenericXLS)
iPrintReport(RPT1)
IF YesNo("Data exported to RPT1.xls","","Open the file with Excel?") THEN
ShellExecute(fShortPath("RPT1.xls"))
END

Regards,

PETER ZHOU
Swissstephan
Re: Query to Excel again!
December 04, 2008 10:55AM
HI Peter
Thanks for your ideas!
I can use the starting of Excel on another place in my project, but I'mno shure if your ideas help me in my actual problem.
How do I build a report from a query with 200 fields?
Thanks again for your help
Paulo Oliveira
Re: Query to Excel again!
December 04, 2008 02:00PM
It must be one XLS file or CSV is enough?
If CSV is ok to you, why don't you try ARRAYTOCSV.
I never used it but it is supposed to work in WX XII.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: