开发者论坛

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

报表保存Stream流,根据Steam流加载显示

[复制链接]

0

精华

0

贡献

43

赞扬

帖子
47
软币
456
在线时间
34 小时
注册时间
2013-6-20
发表于 2015-9-1 15:14:44 | 显示全部楼层 |阅读模式
XtraReport 设定格式,加载数据后,怎样将加载数据后的report保存为Stream流进行传输和客户端根据该流进行加载显示!?
回复

使用道具 举报

0

精华

0

贡献

43

赞扬

帖子
47
软币
456
在线时间
34 小时
注册时间
2013-6-20
 楼主| 发表于 2015-9-1 15:42:05 | 显示全部楼层
用Report的PrintingSystem.SaveDocument(Stream)输出Stream,调用时用PrintingSystem进行加载,然后用PrintPreviewFormEx进行显示。 PrintingSystem ps = new PrintingSystem();

            // Load the document from a stream.
            ps.LoadDocument(Stream);

            // Create an instance of the preview dialog.
            PrintPreviewFormEx preview = new PrintPreviewFormEx();

            // Load the report document into it.
            preview.PrintingSystem = ps;

            // Show the preview dialog.
            preview.ShowDialog()
回复

使用道具 举报

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

GMT+8, 2024-5-23 19:59

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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