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.

Fri Apr 27, 2012 4:49 pm

Would you please give example for setup print area in coding?


Posts: 12
Joined: Sun May 22, 2011 10:25 pm

Tue May 01, 2012 10:36 am

Hi ,

Thanks for your patience and so sorry for the long-time waiting.

You can use the following code to set the print area:

Code: Select all
 workbook.Worksheets[0].PageSetup.PrintArea = "A1:F8";
//give the area you want to print

If you have any other questions, please feel free to contact us.

Have a nice day.

Kind Regards
e-iceblue support
User avatar

Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Fri Feb 15, 2013 9:24 am

Many thanks.

Posts: 1
Joined: Sun Dec 23, 2012 11:14 pm

Return to Spire.XLS