Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

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

cron