Excel SaveAs() method

S

Sandrina

I'm having trouble saving a workbook. I show a SaveFileDialog, the user
specified where he wants to save the file, and where. When the user clicks on
Save button, I say SaveAs... and do something else with the file (after the
file is saved). Anyway, that's what it should do.

My code for saving is this:

this.SaveAs(fileName, Excel.XlFileFormat.xlXMLSpreadsheet, missing, missing,
false, false, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange,
missing, false, missing, missing, true);

It simply doesn't save the xls file. Does anybody have any idea why?
 

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

Similar Threads


Top