用Report的PrintingSystem.SaveDocument(Stream)輸出Stream,調(diào)用時(shí)用PrintingSystem進(jìn)行加載,然后用PrintPreviewFormEx進(jìn)行顯示。 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()
登錄 慧都網(wǎng)發(fā)表評(píng)論