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.

Sun Mar 12, 2023 10:05 pm

I'd like to print specific page range of first sheet to pdf
ex) FromPage = 5; ToPage = 10

I've already tried "Silently Print Excel Documents in C# and VB.NET" code in your site, but not work.
Print total page out.
I appreciate your help.

kebby70
 
Posts: 7
Joined: Tue Jun 26, 2018 4:31 pm

Mon Mar 13, 2023 11:06 am

Hi,

Thanks for your inquiry.
Please add the following line of code to your program.
Code: Select all
settings.PrintRange = PrintRange.SomePages;

Please let us know if you need any further assistance or have any questions.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.XLS