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.

Convert Excel to other formats

Thread ID:





69693 Nov 8,2007 05:22 AM Nov 27,2012 08:14 AM ASP.NET Web Forms (Classic) 4
Tags: XlsIO
Asked On November 8, 2007 05:22 AM

Can an Excel file be exported to another format?

I need an Excel file to end up in a PDF document. Since the PDF component can import HTML and images, is it possible to convert the Excel file to any of these formats, and then import it to the PDF document?

Sri Subhashini M [Syncfusion]
Replied On November 9, 2007 04:12 AM


I regret to let you know that currently we do not provide support for this feature "Exporting Excel into PDF format in XlsIO". We have notified our development team on this regard and will get back to you once we hear back from them.


Chad Dunham
Replied On February 13, 2009 06:00 PM

I was wondering if anything was ever added in with this? Basically I have some excel sheets that I would like to programmatic convert to those to PDF for display purposes.



Bhuvaneswari P [Syncfusion]
Replied On February 16, 2009 07:43 AM

Hi Chad,

We don't have direct option for this feature. However, as a workaround we can achieve this by converting the Worksheet as image and insert this image into the PDF document. Worksheet to image feature is partially completed in our latest version V7.1.0.21. Also we have implemented option to convert Worksheet to EMF image, currently it’s under testing. This feature will be available in our next weekly development build.

Code snippet:
// Convert the worksheet to image
Image img = sheet.ConvertToImage(1, 1, 33, 7);

//To insert Image into PDF file
PdfPage page = section.Pages.Add();
PdfGraphics g = page.Graphics;
PdfImage image = new PdfBitmap(img);
g.DrawImage(image, 80, 40);

Here is the simple sample for Worksheet ->Image -> PDF:


Here is the documentation link for more details:


Please try this and let us know if this helps you.

Best Regards,

Administrator [Syncfusion]
Replied On November 27, 2012 08:14 AM



It Shows Runtime Error.


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.