What replaces - SaveType.OpenInExcel - that does not exist in Cells 7.6.
wb.Save("MyBook.xls", FileFormatType.Excel97To2003, SaveType.OpenInExcel, HttpContext.Current.Response);
Thanks.
What replaces - SaveType.OpenInExcel - that does not exist in Cells 7.6.
wb.Save("MyBook.xls", FileFormatType.Excel97To2003, SaveType.OpenInExcel, HttpContext.Current.Response);
Thanks.
Hi Mark,
Thanks for your posting and using Aspose.Cells.
You can replace the above code like this.
The "ContentDisposition" and "XlsSaveOptions(SaveFormat " aren't found? Here is the broader code.
Aspose.Cells.License AsposeCells = new Aspose.Cells.License();
using (System.IO.FileStream fs = new System.IO.FileStream(HttpContext.Current.Server.MapPath("Aspose.Total.lic"), System.IO.FileMode.Open))
{
AsposeCells.SetLicense(fs);
}
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook();
workbook.Worksheets.Add();
Aspose.Cells.Worksheet worksheet = workbook.Worksheets[0];
worksheet.Cells.ImportDataTable(dt, true, 0, 0);
//workbook.Save(fileName, Aspose.Cells.FileFormatType.Excel97To2003, Aspose.Cells.SaveType.OpenInExcel, HttpContext.Current.Response);
workbook.Save(HttpContext.Current.Response, fileName, ContentDisposition.Attachment, new XlsSaveOptions(SaveFormat.Excel97To2003));
Thanks Again.
Hi,
Amjad, still getting same result. Have redownloaded/reinstalled Aspose.Cells 7.6. We are using .NET 4.5 Framework with VS 2012.
workbook.Save(HttpContext.Current.Response, fileName, ContentDisposition.Attachment, new XlsSaveOptions(SaveFormat.Excel97To2003));
These are the workbook Saves in the Object Browser.
public void Save(string fileName, Aspose.Cells.SaveFormat saveFormat)
Member of Aspose.Cells.Workbook
public void Save(string fileName, Aspose.Cells.SaveOptions saveOptions)
Member of Aspose.Cells.Workbook
Hi,
VS.NET
. Yes, you seem to be right. I added a reference to the file "c:\program files (x86)\aspose\aspose.cells for .net\bin\net2.0\aspose.cells.dll". It shows in Visual Studio 2012 solution object browser as path "C:\Program Files (x86)\Aspose\Aspose.Cells for .NET\Bin\net3.5_ClientProfile\Aspose.Cells.dll" though. How can this be? I get the same result putting the net2.0 aspose.cells.dll into the GAC and reference it from there.
We are running Win 2008 R2 with IIS 7.5. The IIS web site is set to run at 64 bit. The IIS App Pool is set to "Enable 32 bit applications = false". We hope run all as 64 bit.
Hi,
Working with the Aspose.Cells.dll file from the bin folder works. I tried going back to using and referencing it from the GAC and get the same mismatch pathing to the 3.5 client version. Confused on that.
Hi,