Opens an ExcelWriter template from a System.IO.Stream. An ExcelWriter template is a file created in Microsoft Excel that contains data markers where data source values will be inserted.
System.IO.Streamobject, or a class derived from
System.IO.Stream(for example, System.IO.FileStream).
ArgumentNullExceptionOpen will throw this exception if
Nothing(VB.NET) is passed to the method.
RemarksIf your template file is the new Office Open XML (.xlsx) format, you can pass it into the ExcelTemplate.Open method just as you would a BIFF8 (.xls) Excel file. You will need to remember to give the output file a ".xlsx" extension when you call Save, as ExcelWriter cannot convert .xlsx files to .xls.