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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





120167 Sep 7,2015 04:05 PM UTC Sep 8,2015 12:04 PM UTC ASP.NET MVC 2
Tags: XlsIO
Artem Shabalinsky
Asked On September 7, 2015 04:05 PM UTC


I'm using ExcelToPdfConverter  to convert Excel file (with a lot of data) to Pdf. I'm convert it from stream.

Problem is converter pasted whole Excel file onto one page Pdf and it's not readable. After converting I'm printing it.

I tried your's example and it doesn't help me:  http://asp.syncfusion.com/demos/web/pdf/exceltopdf.aspx

It's my code:

using (MemoryStream streamToPdf = new MemoryStream())


streamToPdf.Write(memArray, 0, memArray.Length);

streamToPdf.Position = 0;

ExcelToPdfConverter converter = new ExcelToPdfConverter(streamToPdf);

PdfDocument pdfDocument = new PdfDocument();

ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings();

settings.LayoutOptions = LayoutOptions.FitAllColumnsOnOnePage;

settings.TemplateDocument = pdfDocument;

settings.DisplayGridLines = GridLinesDisplayStyle.Invisible;

pdfDocument = converter.Convert(settings);

string pathtoPdf = HttpContext.Current.Server.MapPath("~/ReportTemplate/Report.pdf");


return pathtoPdf;


Thanks for any help!

Artem Shabalinsky
Replied On September 7, 2015 04:30 PM UTC

Hello, Again!
it was my fault!
everything work fine!

Mathu Mohan Vijayakumar [Syncfusion]
Replied On September 8, 2015 12:04 PM UTC

Hi Artem,

We are glad to know that the issue has been resolved at your end. Please let me know if you have any other queries, we will be happy to assist you.

V.A.Mathu Mohan


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon