BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XL to .Zip?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Joseph Alan Poirier
Guest





PostPosted: Tue Nov 25, 2003 10:09 pm    Post subject: XL to .Zip? Reply with quote



Is there a way to save database query information as a XL file and convert
it to a zip file before sending it to a customer?


Back to top
Joseph Alan Poirier
Guest





PostPosted: Wed Nov 26, 2003 4:14 pm    Post subject: Re: XL to .Zip? Reply with quote



Thanks, got the excel working this morning. I'll have to think more about
the zip. I may just want to send the xl file directly to the browser. Is
there a way to do that?


Back to top
Joseph Alan Poirier
Guest





PostPosted: Wed Nov 26, 2003 8:01 pm    Post subject: Re: XL to .Zip? Reply with quote



Thanks, broke from here with related ? on streams in post above?


Back to top
Joseph Alan Poirier
Guest





PostPosted: Mon Dec 01, 2003 2:09 pm    Post subject: Re: XL to .Zip? Reply with quote

Happy Holidays...

Next question see subject title:
MYSTREAM := EXCEL FILE

How can I set a stream = to the content of an excel file?
I tried...
MyApp := CreateOleObject('EXCEL.Application');
MyApp.SaveToStream(MyStream);
and it didn't work.
.... [Error] EBCOMMI.pas(421): Type not allowed in OLE Automation call

I thought this may have been outside the original subject so I posted it
separately :-)

Also, now I have two more related questions...
Excel appears to remain open in memory after creating and saving my file.
How do I set it to nothing as in VB scripting?

This process does not appear to run on a server that does not have Excel
loaded on it.
VB Script is now creating Excel and Word files using Active X to get around
this. Is there a workaround for Delphi that will allow the Excel file to be
created natively without requiring Excel to be loaded?


Back to top
Joseph Alan Poirier
Guest





PostPosted: Mon Dec 01, 2003 9:05 pm    Post subject: Re: XL to .Zip? Reply with quote

Is there a way to code create an actual Excel .XLS format file without using
OLE Automation?

PS. Thanks for the
MyApp := Null; //makes sense


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.