开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 2091|回复: 2

请教 XtraReport 实例化后怎么打印

[复制链接]

0

精华

0

贡献

0

赞扬

帖子
12
软币
80
在线时间
3 小时
注册时间
2015-11-18
发表于 2015-11-18 23:31:33 | 显示全部楼层 |阅读模式
以前用过DevExpress 很早前的版本 做过报表
XtraReport 实例后后
例如
XtraReport xr=new XtraReport();
xr.Print();
就可以打印了
现在用 12.2.4 版本,里面没有Print方法了
请教高手  该 如何 打印?

回复

使用道具 举报

0

精华

0

贡献

0

赞扬

帖子
12
软币
80
在线时间
3 小时
注册时间
2015-11-18
 楼主| 发表于 2015-11-19 00:09:48 | 显示全部楼层
高手睡了吗?
回复

使用道具 举报

0

精华

0

贡献

0

赞扬

帖子
12
软币
80
在线时间
3 小时
注册时间
2015-11-18
 楼主| 发表于 2015-11-19 09:22:25 | 显示全部楼层
为了打印,差点崩溃掉。
搞定了,为后人乘凉用。
// Create a report instance, assigned to a Print Tool.
    ReportPrintTool pt = new ReportPrintTool(new XtraReport1());

    // Invoke the Print dialog.
    pt.PrintDialog();

    // Send the report to the default printer.
    pt.Print();

    // Send the report to the specified printer.
    pt.Print("myPrinter");
回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-5-29 12:11

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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