//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); //Load template file var fileStream = this.GetResourceStream("xlsx\\Annual financial report.xlsx"); workbook.Open(fileStream); // Save to an excel file workbook.Save("AnnualFinancialReport.xlsx");
' Create a new Workbook Dim workbook As New Workbook 'Load template file Dim fileStream = GetResourceStream("Annual financial report.xlsx") workbook.Open(fileStream) ' save to an excel file workbook.Save("AnnualFinancialReport.xlsx")