Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Aug 28, 2013 10:00 am

How to put the rectangular excel convert PDF.

jinguohai2009
 
Posts: 1
Joined: Wed Aug 28, 2013 5:31 am

Thu Aug 29, 2013 2:50 am

Thanks for your inquiry.

Sorry that we doesn't understand your need, could you please describe your needs in detail? BTW, You could use the following method to convert Excel to PDF,
Code: Select all
Workbook workbook = new Workbook();
workbook.LoadFromFile(your excel file);
PdfDocument pdfdoc = new PdfDocument();
var converter = new PdfConverter(workbook);
var setting = new PdfConverterSettings
{
EmbedFonts = true,
TemplateDocument = pdfdoc,
FitSheetToOnePage = FitToPageType.NoScale
};
pdfdoc = converter.Convert(setting);
pdfdoc.SaveToFile(string filename);

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.XLS