At this moment, the excell file is automatically saved on the disk,
like this :
excel.Save((“C:\inetpub\wwwroot\conevex\excell\TableauDT.xls”, Aspose.Excel.FileFormatType.Excel2003);
What should I do to make a ‘save as.’ window appear?
thank you
At this moment, the excell file is automatically saved on the disk,
like this :
excel.Save((“C:\inetpub\wwwroot\conevex\excell\TableauDT.xls”, Aspose.Excel.FileFormatType.Excel2003);
What should I do to make a ‘save as.’ window appear?
thank you
When you save the file to disk, the “save as” window will not appear. You can add such a window in your program before saving the file to disk.
seminckx, try the following code:
using (SaveFileDialog f = new SaveFileDialog())
{
f.Filter = "Excel files (*.xls)|*.xls|All files (*.*)|*.*";
f.DefaultExt = "xls";
if (f.ShowDialog() == DialogResult.OK)
excel.Save(f.FileName, FileFormatType.Default);
}