标题: C# Excel 打印区域页脚设置 Display page numbers in a excel [打印本页] 作者: 资讯王 时间: 2011-1-14 08:16 标题: C# Excel 打印区域页脚设置 Display page numbers in a excel C# Excel 打印区域页脚设置 Display page numbers in a excel
页数 Page numbers
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*.