Hello i want to load a macro file i created and add some sheets to it at runtime . the workbook has no password just that it contains some macro.pls help
string wrkpath = Server.MapPath("~/App_Data/PmasterTemplate.xlsm");
Workbook wrk = new Workbook(path);
wrk.FileFormat = FileFormatType.Xlsm;
// Workbook wrkbk = new Workbook();
Workbook wrk2 = (Workbook)x.PmasterOilandGasPIVot(ref MEM, ref msg, this.cboFirstElement.SelectedItem.Text,wrk, this.cboGroup.SelectedValue, true, this.cbostartdate.SelectedItem.ToString(), this.cboenddate.SelectedItem.ToString());
wrk2.Save(this.Response, " Report.xlsx", Aspose.Cells.ContentDisposition.Attachment, new XlsSaveOptions(SaveFormat.Xlsx));
am getting this Error :