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

 找回密码
 注册
搜索
打印 上一主题 下一主题

C# Excel 打印区域页脚设置 Display page numbers in a excel

[复制链接]
跳转到指定楼层
1#
发表于 2011-1-14 08:16:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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*.

手机版|大马资讯论坛  

GMT+8, 2024-5-3 10:46 , Processed in 0.018244 second(s), 12 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表