大马资讯论坛 - 马来西亚中文资讯平台

标题: 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
  1. Worksheet.PageSetup.CenterFooter = "Page &P of &N"
复制代码
粗体Text Bold
  1. 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*.




欢迎光临 大马资讯论坛 - 马来西亚中文资讯平台 (http://freeinfo.com.my/) Powered by Discuz! X3.3