Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added argument exception

...

Exception
System.Exception
System.Exception

If there is an error obtaining the response stream from the Response object.

Exception
System.ArgumentException
System.ArgumentException

If the extension of the filename given is invalid for the given workbook. For example, a file created with Excel 2007, that has macros must be saved with the .xlsm extension

Example
Code Block
csharp
csharp
titleC#

          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Create();

          //--- Do something here
          xla.Save(wb, Page.Response, "generated.xls", false);
        
Code Block
vb.net
vb.net
titlevb.net

          Dim xla As New ExcelApplication()
          Dim wb As Workbook = xla.Create()

          '--- Do something here
          xla.Save(wb, Page.Response, "generated.xls", False)