OWC Spreadsheet Export to Excel

R

rweide

I am trying to control or pre-assign the file name and file folder when users
press the "Export to Office Excel" button on the OWC spreadsheet on my web
page.

Is there a way I can do this? Thanks.
 
A

Alvin Bruney [MVP]

the export to excel feature fires the export event, have a look at this
event for customization

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
 
R

rweide

I did catch the export event on CommandExecute, but how do I assign the file
name, its extension, etc? Thanks.

Alvin Bruney said:
the export to excel feature fires the export event, have a look at this
event for customization

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


rweide said:
I am trying to control or pre-assign the file name and file folder when
users
press the "Export to Office Excel" button on the OWC spreadsheet on my web
page.

Is there a way I can do this? Thanks.
 
R

rweide

I have it resolved.

I use CommandBeforeExecute to disable the automatic Export, and set the file
name with Spreadsheet.Export myfilename.

Thanks.

rweide said:
I did catch the export event on CommandExecute, but how do I assign the file
name, its extension, etc? Thanks.

Alvin Bruney said:
the export to excel feature fires the export event, have a look at this
event for customization

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


rweide said:
I am trying to control or pre-assign the file name and file folder when
users
press the "Export to Office Excel" button on the OWC spreadsheet on my web
page.

Is there a way I can do this? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top