XtraRport的问题,在线等!!!

大Y 2011-06-08 03:05:51
我用的是XtraReport单独设计的报表,
但是想从窗体里,来显示报表,而不是通过ShowPreview())等等其它的,
现在放了一个PrintControl控件后,不能把报表付给这个控件让这个窗体显示,请各位大侠帮帮忙。

怎么来配置才可以呀/
...全文
134 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yeyucao123 2011-06-09
  • 打赏
  • 举报
回复
接分 .....
大Y 2011-06-08
  • 打赏
  • 举报
回复



试出来了,哈哈,接分撒
zhenyunyuan 2011-06-08
  • 打赏
  • 举报
回复
var fXtraReport = new XtraReportChaoBian();
fXtraReport.SetDataSource(new DataTable());//配置数据源
//fXtraReport.LoadLayout(@"C:\1.repx");另一种形式

PrintControl printControl1 = new PrintControl();//可以动态生成也可以将PrintControl拖放上去
printControl1.PrintingSystem = fXtraReport.PrintingSystem;


PrintBarManager printBarManager = new PrintBarManager();
printBarManager.Form = printControl1;
printBarManager.Initialize(printControl1);
printBarManager.MainMenu.Visible = false;
printBarManager.AllowCustomization = false;

//操作要显示什么按钮
printControl1.PrintingSystem.SetCommandVisibility(new PrintingSystemCommand[]{
PrintingSystemCommand.Open,
PrintingSystemCommand.Save,
PrintingSystemCommand.ClosePreview,
PrintingSystemCommand.Customize,
PrintingSystemCommand.SendCsv,
PrintingSystemCommand.SendFile,
PrintingSystemCommand.SendGraphic,
PrintingSystemCommand.SendMht,
PrintingSystemCommand.SendPdf,
PrintingSystemCommand.SendRtf,
PrintingSystemCommand.SendTxt,
PrintingSystemCommand.SendXls
}, CommandVisibility.None);

fXtraReport.CreateDocument();
panelControl2.Controls.Add(printControl1);
zhenyunyuan 2011-06-08
  • 打赏
  • 举报
回复
private void FormRpt_Load(object sender, EventArgs e)
{
BzxtBLL.employeRptBLL rptBLL = new BzxtBLL.employeRptBLL();
var fXtraReport = new XtraReportChaoBian();
fXtraReport.SetDataSource(rptBLL.GetChaoBian(false));//配置数据源
//fXtraReport.LoadLayout(@"C:\1.repx");另一种形式

PrintControl printControl1 = new PrintControl();//可以动态生成也可以将PrintControl拖放上去
printControl1.PrintingSystem = fXtraReport.PrintingSystem;


PrintBarManager printBarManager = new PrintBarManager();
printBarManager.Form = printControl1;
printBarManager.Initialize(printControl1);
printBarManager.MainMenu.Visible = false;
printBarManager.AllowCustomization = false;

//操作要显示什么按钮
printControl1.PrintingSystem.SetCommandVisibility(new PrintingSystemCommand[]{
PrintingSystemCommand.Open,
PrintingSystemCommand.Save,
PrintingSystemCommand.ClosePreview,
PrintingSystemCommand.Customize,
PrintingSystemCommand.SendCsv,
PrintingSystemCommand.SendFile,
PrintingSystemCommand.SendGraphic,
PrintingSystemCommand.SendMht,
PrintingSystemCommand.SendPdf,
PrintingSystemCommand.SendRtf,
PrintingSystemCommand.SendTxt,
PrintingSystemCommand.SendXls
}, CommandVisibility.None);

fXtraReport.CreateDocument();
panelControl2.Controls.Add(printControl1);
}
大Y 2011-06-08
  • 打赏
  • 举报
回复


我自己顶
内容概要:本文档详细介绍了基于直驱永磁同步发电机(PMSG)的1.5MW风力发电系统在Simulink环境下的建模与仿真全过程,涵盖了风力机空气动力学模型、PMSG电磁特性建模、不可控整流与逆变电路、直流环节、空间矢量脉宽调制(SVPWM)技术以及核心控制策略的设计。重点实现了最大功率点跟踪(MPPT)控制以提升风能捕获效率,并构建了电压外环与电流内环协同工作的双闭环控制系统,通过仿真验证了系统在不同风速条件下稳定运行的能力及动态响应性能。; 适合人群:适用于具备电力系统、电机控制理论基础及Simulink仿真操作经验的研究生、科研人员和从事新能源发电系统开发的工程技术人员;特别适合正在进行风电系统建模、控制算法研究或完成相关毕业设计的专业人士。; 使用场景及目标:①深入理解直驱式PMSG风力发电系统的整体架构与工作机理;②掌握从物理部件建模到控制策略实现的完整Simulink仿真流程;③学习并复现MPPT控制、双闭环控制等关键技术方案;④为后续开展低电压穿越、并网稳定性分析、故障诊断等高级课题提供可靠的仿真平台支撑。; 阅读建议:建议结合Matlab/Simulink软件动手实践,逐模块搭建模型,重点关注各控制环节的参数设计与调试方法,同时可参照文中提供的其他风电相关资源进行拓展学习与对比分析。

4,818

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧