Unable to locate the ContentDisposition enum

I'm referencing the ASPOSE.Cells.dll and have typed "using aspose.cells;" in my C# project however Visual studio is unable to locate the ContentDisposition.Attachment enum.

What am I doing wrong?!

workbook.Save(this.Response, "Report.xlsx", ContentDisposition.Attachment, new OoxmlSaveOptions());
 

This message was posted using Page2Forum from ContentDisposition Enumeration - Aspose.Cells for .NET
Hi,

When you use our product in a a web application, please use the Aspose.Cells.dll in the net2.0 in /bin directory. I think you are using the ClientProfile version of Aspose.Cells Assembly. For your information, the dll in net3.5_ClientProfile directory is used only for the console application with Net frame client profile as the target framework of vs.net. Please check your project, it is possible that your project is referencing this dll. For complete reference, please read the readme.txt file in the bin directory.

Let us know if you still have any confusion.

Hi,

Thanks for your posting.


Please try using full naming i.e Aspose.Cells.ContentDisposition.


If it does not work, then please download the latest version Aspose.Cells
for .NET v5.3.2.6
.