We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

cannot create compound file

Thread ID:

Created:

Updated:

Platform:

Replies:

56974 Feb 22,2007 05:45 PM Feb 26,2007 05:05 AM ASP.NET Web Forms (Classic) 3
loading
Tags: XlsIO
Administrator [Syncfusion]
Asked On February 22, 2007 05:45 PM

I am a newbie to Syncfusion. I have used .NET 2005 to create a web project that uses Syncfusion. When placed on the server, I receive the error "cannot create compound file". The code snippit is attached. The error is received when I try to save a newly created Excel file.

Syncfusion Error2.zip

Melba Winshia [Syncfusion]
Replied On February 23, 2007 07:42 AM

Hi Megan,

Thanks for your interest in Essential XlsIO.

Please use the following code snippet to stream the workbook to the client browser. The only code that is specific for the usage of XlsIO in web forms application is the streaming of the spreadsheet to the client browser.


// Stream the workbook to the client browser.

workbook.SaveAs("Sample.xls",ExcelSaveType.SaveAsXLS,Response,ExcelDownloadType.PromptDialog);

Also, Please refer the following url for more asp.net samples:

http://www2.syncfusion.com/syncfusion/infrastructure/samplebrowserasp/samples.aspx?version=2_0&browseto=XlsIO.Web

Kindly let me know the problem still exists.

Thanks,
Melba


Administrator [Syncfusion]
Replied On February 23, 2007 10:28 AM

Thanks for the response. The statement worked perfectly.

>Hi Megan,

Thanks for your interest in Essential XlsIO.

Please use the following code snippet to stream the workbook to the client browser. The only code that is specific for the usage of XlsIO in web forms application is the streaming of the spreadsheet to the client browser.


// Stream the workbook to the client browser.

workbook.SaveAs("Sample.xls",ExcelSaveType.SaveAsXLS,Response,ExcelDownloadType.PromptDialog);

Also, Please refer the following url for more asp.net samples:

http://www2.syncfusion.com/syncfusion/infrastructure/samplebrowserasp/samples.aspx?version=2_0&browseto=XlsIO.Web

Kindly let me know the problem still exists.

Thanks,
Melba


Melba Winshia [Syncfusion]
Replied On February 26, 2007 05:05 AM

Hi Megan,

Thanks for the update!

Kindly let me know if you have any other questions.

Thanks,
Melba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;