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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OWC Spreadsheet Export

Status
Not open for further replies.

rwei

Programmer
Nov 19, 2004
55
US
I created spreadsheet on my web page using Office Web Component.

When I press 'Export' commmand on the OWC Spreadsheet to export it to Excel, it automatically assigns a file name with an XML extension, I wonder how and if I can manually assign a file name and an extension I want for the export, either programmatically or by changing some options?

Does anyone know? Thanks.
 
I've had it resolved.

For those who may use this in the future. I use
Code:
Spreadsheet1_CommandBeforeExecute(Command, Cancel)
event handler, and set
Code:
Cancel.Value = True
to bypass the automatic export. Then I do a
Code:
Spreadsheet1.Export myfolder & myfilename
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top