- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
xtrareport的使用方法
Xtrareport
1, 此报表在设置时,paperkind中找不到自定义的纸张,所以我就在事件beforeprint中,
this.Margins = new System.Drawing.Printing.Margins(10, 10, 10, 10);
this.PaperKind = System.Drawing.Printing.PaperKind.Custom;
this.PageWidth = 827;
this.PageHeight = 584;
this.PaperName = 21*13
2.加载已有模板
xrpt1.LoadLayout(@E:\EMS.repx);
Developer Express 之 XtraReport报表预览控件PrintControl设置
using?System; 02 using?System.Collections.Generic;
03 using?System.ComponentModel; 04 using?System.Data;
05 using?System.Drawing; 06 using?System.Text;
07 using?System.Windows.Forms; 08 using?DevExpress.XtraEditors;
09 using?DevExpress.XtraReports.UI; 10 using?DevExpress.XtraPrinting.Preview;
11 using?DevExpress.XtraPrinting; 12 using?DevExpress.XtraPrinting.Control;
13 ? 14 namespace?WFAXtraReport
15 { 16 ????public?partial?class?Form1 : Form
17 ????{ 18 ????????public?Form1 ()
19 ????????{ 20 ????????????InitializeComponent();
21 ????????} 22 ?
23 ????????private?void?Form1 _Load(object?sender, EventArgs e) 24 ????????{
25 ????????????? 26 ????????????XtraReport fXtraReport =?new?XtraReport();
27 ????????????//fXtraReport.LoadLayout(@C:\1.repx); 28 ?
29 ????????????PrintControl printControl1 =?new?PrintControl(); 30 ????????????printControl1.PrintingSystem = fXtraReport.PrintingSystem;
31 ? 32 ?
33 ????????????PrintBarManager printBarManager =?new?PrintBarManager(); 34 ????????????printBarManager.Form = printControl1;
35 ????????????printBarManager.Initialize(printControl1); 36 ????????????printBarManager.MainMenu.Visible =?false;
37 ????????????printBarManager.AllowCustomization =?false; 38 ?
39 ????????????//操作要显示什么按钮 40 ????????????printControl1.PrintingSystem.SetCommandVisibility(new?PrintingSystemCommand[]{
41 ????????????????PrintingSystemCommand.Open, 42 ????????????????PrintingSystemCommand.Save,
43 ????????????????PrintingSystemCommand.ClosePreview, 44 ????????????????PrintingSystemCommand.Customize,
45 ????????????????PrintingSystemCom
您可能关注的文档
- The Iterative MultiAgent Method for Solving Complex Search Problems.pdf
- The Kaon Bparameter from TwoFlavour Dynamical Domain Wall Fermions.pdf
- The Lagging Legs Exploiting Body Dynamics to Steer a Quadrupedal Agent.pdf
- The Modified Dynamics as a Vacuum Effect.pdf
- The Model for QCD Running Coupling Constant with Dynamically Generated Mass and Enhancement.pdf
- The MP Encoding for Distributed Mathematical Computations An Objectoriented Design and Imp.pdf
- The Monetary Models of Exchange Rate Determination.pdf
- The Nature of the Gould Belt from a Fractal Analysis of its Stellar Population.pdf
- The New Development Economics after the Washington Consensus.ppt
- The K Dynamic Stochastic Shortest Paths Problem and Its Application to Transportation Mode.pdf
最近下载
- 虾米曲线一体化防堵清堵振动煤斗改造方案2017.10.doc
- 电梯维修指引手册(日立MCA、HGP).pdf
- 牛津译林版八年级下册英语期末复习:全册Unit 1-Unit 8语法知识点提纲(实用,必备!).docx VIP
- 2025届高考散文专题之理解词义、句义.pptx
- 标准参照测验的设计与编制案例.ppt
- 《十万个为什么》-读书分享课件.pptx VIP
- 虾米曲线防堵清堵煤斗运行维护手册.pdf
- 最新人教版小学四年级数学下册期中考试题及答案(三套).pptx VIP
- 04水平四 七年级 武术18课时大单元计划+《健身长拳》.doc VIP
- 统编版语文六年级下册【全册】单元知识点复习课件.pptx VIP
文档评论(0)