We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How do I insert page numbers?

I am setting the pagesetup properties for my xls file so when printed it will have page numbers in it.

I can't figure out how to "turn on" page numbering.

Thanks


1 Reply

GM Geetha M Syncfusion Team January 30, 2009 11:42 AM UTC

Hi Kelley,

Thank you for your interest in Syncfusion products.

Page number can be enabled in the header of the document by using the following code snippets:

sheet.PageSetup.CenterHeader = "&P";

You can get more information from the documentation link given below:
http://help.syncfusion.com/ug_71/xlsio/HeaderFooter.html

Regards,
Geetha


Loader.
Live Chat Icon For mobile
Up arrow icon