
- 积分
- 43
- 在线时间
- 34 小时
- 主题
- 4
- 注册时间
- 2013-6-20
- 帖子
- 47
- 最后登录
- 2023-12-20

- 帖子
- 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()
 |
|