Worksheet.PageSetup.CenterFooter = "Page &P of &N"
复制代码
粗体Text Bold
Worksheet.PageSetup.LeftFooter = "&B Bold text &B"
复制代码
其它代码The following codes are from the SpreadsheetGear for .NET help and are compatible with Excel:
&P - the current page number.
&N - the total number of pages.
&B - use a bold font*.
&I - use an italic font*.
&U - use an underline font*.
&& - the '&' character.
&D - the current date.
&T - the current time.
&F - workbook name.
&A - worksheet name.
&"FontName" - use the specified font name*.
&N - use the specified font size*.