I'm developing an application which generates several Excel files using Aspose.Cells v4.6.0 in Excel2007Xlsx format. Each workbook is created by copying a "template" xlsx file as indicated below:
Dim xlOutput as Aspose.Cells.Workbook = New Aspose.Cells.Workbook
Dim xlOutputTemplate as Aspose.Cells.Workbook
xlOutputTemplate.Open("templatefile.xlsx")
xlOutput.Copy(xlOutputTemplate)
'make changes to xlOutput
xlOutput.Save("createdfile.xlsx",Aspose.Cells.FileFormatType.Excel2007Xlsx)
This part seems to work fine. However, the first time the file generated is opened in Excel 2007, even if no changes are made to the file, when the file is closed, Excel still prompts the user saying, "Do you want to save the changes you made to 'createdfile.xlsx'?" After you save in Excel 2007, if you open the file again and close it you do not receive the same save prompt. I need to find a way to stop the save prompt from appearing.
Any ideas on what is causing it or, more important, how to prevent the save prompt from appearing on the inaugural closing of the document?