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.

Thu Oct 05, 2017 8:16 am

Hey

I want to use "Spire.Xls.Converter" but i can't find it,
because i want to convert a XLS to PDF.

Thank you for an answer
Gunther

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Thu Oct 05, 2017 8:34 am

Dear Gunther,

I could find the "Spire.Xls.Converter" in the latest Spire.Office V2.16.18, yet the method you want to use is old method, so I sugget you use new method to convert Excel to PDF.
https://www.e-iceblue.com/Tutorials/Spi ... o-PDF.html
If there is any qeustion, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Oct 05, 2017 10:34 am

Hello Betsy

I am using spire.xls 7.12.92.14040, but i cannot find the spire.xls.converter?

I want to save a excel-sheet as PDF with the same page-orientation as it is saved the excel-sheet!

I tried the new method too, but it always saves the sheet as a PDF in portrait, not in landscape.

do you know a solution?

lg Gunther

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Fri Oct 06, 2017 2:46 am

Hello,

Thanks for your response. The spire.xls.converter namespace exists in the Spire.Common.dll, but the method has been marked as obsoleted, so this is not recommended to use.
Is the page-orientation of the worksheet you need to convert landscape? If not, you could first set the worksheet orientation as landscape like as below. If the way can't still work for you, please attach the document you were trying for our investigation further.
Code: Select all
worksheet.PageSetup.Orientation = PageOrientationType.Landscape


Sincerely,
Gary
E-iceblue support team
User avatar

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

Fri Oct 06, 2017 4:53 am

Hello Gary!
Thank you, for your fast help.

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Mon Oct 09, 2017 1:25 am

Dear GHWels,

Thanks for your feedback.
Please free free to contact us if there is any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS