📄 - developer express xtragrid使用技巧 - 腾讯博客 - qzone.htm
字号:
break;<BR> case
3:stringsPFA[2]=stringsPFA[2]+"[Page # of Pages
#]";<BR>
break;<BR> case
4:stringsPFA[1]=stringsPFA[1]+"[Page # of Pages
#]";<BR>
break;<BR> case
5:stringsPFA[0]=stringsPFA[0]+"[Page # of Pages
#]";<BR>
break;<BR> default:stringsPFA[2]=stringsPFA[2]+"[Page
# of Pages
#]";<BR>
break;<BR>
};<BR>
}<BR>
if
(isPrintDate)<BR>
{<BR>
switch(dateLocation)<BR>
{<BR> case
0:stringsPHA[0]=stringsPHA[0]+"[Date
Printed]";<BR>
break;<BR> case
1:stringsPHA[1]=stringsPHA[1]+"[Date
Printed]";<BR>
break;<BR> case
2:stringsPHA[2]=stringsPHA[0]+"[Date
Printed]";<BR>
break;<BR> case
3:stringsPFA[2]=stringsPFA[2]+"[Date
Printed]";<BR>
break;<BR> case
4:stringsPFA[1]=stringsPFA[1]+"[Date
Printed]";<BR>
break;<BR> case
5:stringsPFA[0]=stringsPFA[0]+"[Date
Printed]";<BR>
break;<BR> default:stringsPFA[0]=stringsPFA[0]+"[Date
Printed]";<BR>
break;<BR>
};<BR>
}<BR>
PHA.Content.AddRange(stringsPHA);<BR>
PFA.Content.AddRange(stringsPFA);<BR>
if (pageHeaderFont !=
null)<BR>
{<BR>
try<BR>
{<BR>
PHA.Font =
pageHeaderFont;<BR>
}<BR>
catch<BR>
{<BR>
PHA.Font = new Font(new
System.Drawing.FontFamily("楷体_GB2312"),20,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point);<BR>
}<BR>
}<BR>
else<BR>
{<BR>
PHA.Font = new Font(new
System.Drawing.FontFamily("楷体_GB2312"),20,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point);<BR>
}<BR>
if (pageFooterFont !=
null)<BR>
{<BR>
try<BR>
{<BR>
PFA.Font =
pageFooterFont;<BR>
}<BR>
catch<BR>
{<BR>
PFA.Font = new Font(new
System.Drawing.FontFamily("楷体_GB2312"),9,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point);<BR>
}<BR>
}<BR>
}<BR> public void
ShowDevPreview(DevExpress.XtraPrinting.IPrintable
printComponent)<BR>
{<BR>
PageHeaderFooterSettings();<BR>
DevExpress.XtraPrinting.PrintingSystem ps = new
DevExpress.XtraPrinting.PrintingSystem();<BR>
DevExpress.XtraPrinting.PrintableComponentLink pc
=new DevExpress.XtraPrinting.PrintableComponentLink();<BR>
pc.Component =
printComponent;<BR>
pc.Landscape =
true;<BR>
//是否指定页边距尺寸<BR>
if (devMargins != null)
<BR>
pc.Margins =
devMargins;<BR>
//是否定义纸张<BR>
if (devPaperKind !=
System.Drawing.Printing.PaperKind.A4)<BR> pc.PaperKind
=
devPaperKind;<BR>
//标题和页脚的显示<BR>
pc.PageHeaderFooter = new
DevExpress.XtraPrinting.PageHeaderFooter(PHA,PFA);<BR>
pc.CreateDocument(ps);<BR>
pc.EnablePageDialog =
enableEditPage;<BR>
pc.ShowPreview();<BR> }
<BR><BR> }</DIV></DIV><IMG id=paperPicArea1
style="DISPLAY: none; POSITION: relative"
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif">
</TD></TR></TBODY></TABLE>
<DIV class=clear id=paperBottom></DIV></DIV>
<DIV class=c_tx2><BR><BR>
<DIV class=other_art><STRONG>空间的其他文章:</STRONG><FONT style="LINE-HEIGHT: 1.5em">
<UL>
<LI><A href="http://qzone.qq.com/blog/21515316-1198581275"
target=_blank>[个人日记]:一粒沙子的故事(2007年12月25日 19:14)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1236685883"
target=_blank>[C#教程]:水晶報表參數傳遞(2009年03月10日 19:51)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1231835722"
target=_blank>[C#教程]:System.IO.File类和System.IO.FileInfo类(2009年01月13日
16:35)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1231566674"
target=_blank>[C#教程]:C#中ToString格式大全 【ZT】(2009年01月10日 13:51)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1231502358"
target=_blank>[C#教程]:C#操作Excel详解(2009年01月09日 19:59)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1230738061"
target=_blank>[个人日记]:sds(2008年12月31日 23:41)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1228444190"
target=_blank>[C#教程]:gridcontrol使用(2008年12月05日 10:29)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1228391208"
target=_blank>[编程随笔]:程序员如何掌握专业英语(2008年12月04日 19:46)</A>
<LI><A href="http://qzone.qq.com/blog/21515316-1228184190"
target=_blank>[C#教程]:C#角色功能权限设定(2008年12月02日 10:16)</A></LI></UL></FONT></DIV>
<DIV class=notdraft></DIV></DIV><!--E 文章内容--></DIV><!--E 正文--><!-- 上一篇下一篇 -->
<DIV class=page_operate><IMG class=icon_preblog alt=上一篇
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"><A class=c_tx
title=上一篇 href="http://qzone.qq.com/blog/21515316-1231502358">上一篇</A> | <IMG
class=icon_nextblog alt=下一篇
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"><A class=c_tx
title=下一篇 href="http://qzone.qq.com/blog/21515316-1230738061">下一篇</A> | <IMG
class=icon_backblog alt=返回日志列表
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"><A class=c_tx
title=返回日志列表 href="http://user.qzone.qq.com/21515316/blog">返回日志列表</A>
</DIV></DIV><!--E 模块内容 --></DIV></DIV>
<DIV class=box_br>
<DIV class=box_bl>
<DIV class=box_bm></DIV></DIV></DIV></DIV><!--E 效果用的九宫格 --></DIV></DIV><!--E 模块--><!--S 小页码 changed by hyc-->
<DIV class="page bgr" id=pageNavigator>
<P class=left>共 <SPAN class=hit id=totalCommentNum></SPAN>篇评论,第 <SPAN class=hit
id=currentPageNum></SPAN>页/共 <SPAN id=totalPageNum></SPAN>页</P><SPAN class=right
title=点击这里发表评论 style="CURSOR: pointer"
onclick="if(!!window.sendCommentEditor)sendCommentEditor.editorArea.focus();else frmComment.content.focus()"><IMG
class=icon_share_blog
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"> 发表评论</SPAN>
<DIV class=page_s id=commentPageIndexTop><A title=第一页
onclick="firstPage();return false;" href="javascript:void(0);"><IMG
class=bt_pre_e alt=第一页
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"><SPAN
class=none>第一页</SPAN></A> <A onclick="prePage();return false;"
href="javascript:void(0);"><IMG class=bt_pre alt=上一页
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif">上一页</A> <A
onclick="nextPage();return false;" href="javascript:void(0);">下一页<IMG
class=bt_next alt=下一页
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"></A> <A
title=最后页 onclick="lastPage();return false;" href="javascript:void(0);"><IMG
class=bt_next_e alt=最后页
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"><SPAN
class=none>最后页</SPAN></A> </DIV></DIV><!--E 小页码--><!--评论列表 start-->
<DIV class=clear id=commentTitle></DIV>
<DIV id=blogStaticCommentListAnchor style="DISPLAY: none"></DIV>
<DIV class=clear></DIV><!--评论列表 end--><!--S 小页码-->
<DIV class="page bgr" id=pageNavigator1>
<P class=left>共 <SPAN class=hit id=totalCommentNum></SPAN>篇评论,第 <SPAN class=hit
id=currentPageNum></SPAN>页/共 <SPAN id=totalPageNum></SPAN>页</P>
<DIV class=page_s id=commentPageIndexBottom><A title=第一页
onclick="firstPage();return false;" href="javascript:void(0);"><IMG
class=bt_pre_e alt=第一页
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"><SPAN
class=none>第一页</SPAN></A> <A onclick="prePage();return false;"
href="javascript:void(0);"><IMG class=bt_pre alt=上一页
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif">上一页</A> <A
onclick="nextPage();return false;" href="javascript:void();" ?>下一页<IMG
class=bt_next alt=下一页
src="- Developer Express XtraGrid使用技巧 - 腾讯博客 - Qzone.files/b.gif"></A> <A
title=最后页 onclick="lastPage();return false;" href="javascript:void(0);"><IMG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -