Passes a spreadsheet from ExcelApplication to ExcelTemplate.

 public virtual void Open(ExcelApplication excelApplication, Workbook workbook)
Public Overridable Sub Open(ByVal excelApplication As ExcelApplication, ByVal workbook As Workbook)

The instance of ExcelApplication that was used to create the spreadsheet.

A Workbook object representing the Excel file created with ExcelApplication.

Open will throw this exception if null (C#) or Nothing (VB.NET) is passed to the method.

You can use ExcelApplication to create a document with data markers (a template) and pass the file to ExcelTemplate to populate the data markers.

If your template file is the new Office Open XML (.xlsx) format, you cannot open it using ExcelApplication in ExcelWriter version 7.


          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Create();
          ExcelTemplate xlt = new ExcelTemplate();
          xlt.Open(xla, wb);
        

          Dim xla As New ExcelApplication()
          Dim wb As Workbook = xla.Create()
          Dim xlt As New ExcelTemplate()
          xlt.Open(xla, wb)