We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Difference between net 2.0 and net3.5_ClientProfile

It appears there a some methods missing in the net3.5_ClientProfile Dll such as overloaded methods to save to the HTTP Response stream. What is the difference between these two libraries and why doesn’t the v3.5 version contain those methods?

Hi,

Well, for your info, the net3.5_ClientProfile folder has Aspose.Cells.dll compiled for if your project’s target framework is .NET framework client profile (it is also compiled on .NET 2.0 framework) in VS.NET. Please use the Aspose.Cells.dll file in the net2.0 folder, your required method version is there in it.

If you still persists with net3.5_ClientProfile’s dll file, change your code a bit, it works fine:
e.g.

MemoryStream ms = new MemoryStream();

workbook.Save(ms,SaveFormat.Excel97To2003);

byte[] aBytes;

// Write all Data
aBytes = ms.ToArray();

// Send as file as open in excel.
Response.AppendHeader(“Content-Disposition”, "attachment;filename = " + “MyFile.xls”);
Response.ContentType = “application/msexcel”;
Response.AddHeader(“content-length”, Convert.ToString(aBytes.Length));
Response.BinaryWrite(aBytes);
Response.Flush();
Response.Close();
// Free Stream
ms.Close();

Thank you.