Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to save a file as xls and allow the user to choose the dir(Path) 2

Status
Not open for further replies.

xk120

Technical User
Jul 24, 2000
17
0
0
US
How can I let the user of my application save a small data set of a table into xls format (COPY TO) and then direct the xls file to a directory they choose? When I use Copy To I will default the file name/path. I want the user to be able to rename and save the xls file to anywhere they choose. [sig][/sig]
 
Copy to (putfile()) type xls works, but when I choose to cancel without saving I get an
error
" OLE error code 0x80030003 Unkown COM status code"

What is this error, how do I fix it?

[sig][/sig]
 
local lcFileName
lcFileName = putfile()
if !empty(lcFileName)
Copy to (lcFileName) type xls
endif [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Thanks, great job!!! [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top