社区
图表区
帖子详情
XtraRport的问题,在线等!!!
大Y
2011-06-08 03:05:51
我用的是XtraReport单独设计的报表,
但是想从窗体里,来显示报表,而不是通过ShowPreview())等等其它的,
现在放了一个PrintControl控件后,不能把报表付给这个控件让这个窗体显示,请各位大侠帮帮忙。
怎么来配置才可以呀/
...全文
131
6
打赏
收藏
XtraRport的问题,在线等!!!
我用的是XtraReport单独设计的报表, 但是想从窗体里,来显示报表,而不是通过ShowPreview())等等其它的, 现在放了一个PrintControl控件后,不能把报表付给这个控件让这个窗体显示,请各位大侠帮帮忙。 怎么来配置才可以呀/
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用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
打赏
举报
回复
我自己顶
黑马程序员-美多商城完整项目代码.zip
黑马程序员 大事件Springboot3+vue3项目
M800VM80V系列 编程说明书(L系) ib1501636-1501637chng.pdf
M800VM80V系列 编程说明书(L系) ib1501636-1501637chng
新年烟花代码HTML5-下载即用.zip
源码下载地址: https://pan.quark.cn/s/a9b188c0f76b FireWorks 基于Html+Canvas写的一个2023年3D跨年烟花代码、可以自己修改字以及音乐 image image image
基于 Streamlit + LangChain + DeepSeek 构建的智能知识库问答应用,支持文档上传、向量库构建和智能问答
网上关于LLM大模型构建知识库的理论知识挺多的,但能跑通的代码比较少。此资源对LLM大模型的学习有很大的帮忙。
黑马程序员的Linux网络编程学习记录.zip
黑马程序员 大事件Springboot3+vue3项目
图表区
4,818
社区成员
14,134
社区内容
发帖
与我相关
我的任务
图表区
.NET技术 图表区
复制链接
扫一扫
分享
社区描述
.NET技术 图表区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章