报表保存Stream流,根据Steam流加载显示
XtraReport 设定格式,加载数据后,怎样将加载数据后的report保存为Stream流进行传输和客户端根据该流进行加载显示!?用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()
{:2_25:}
页:
[1]