PrintDocumentWithSetup

PdfViewer.PrintDocumentWithSetup method

打印带有设置对话框的 Pdf 文档。使用对话框选择打印机。

public void PrintDocumentWithSetup()

例子

[C#]
dfViewer viewer = new PdfViewer();
iewer.OpenPdfFile(@"d:\test.pdf");
iewer.AutoResize = true;         //打印调整大小的文件
iewer.AutoRotate = true;         //打印调整旋转的文件
iewer.PrintPageDialog=false;//打印时不产生页码对话框
iewer.PrintDocumentWithSetup();
iewer.ClosePdfFile();

VisualBasic]
im viewer As PdfViewer = new PdfViewer()
iewer.OpenPdfFile(@"d:\test.pdf")   
iewer.AutoResize = true          '打印调整大小的文件
iewer.AutoRotate = true          '使用调整后的旋转打印文件
iewer.PrintPageDialog=false;//打印时不产生页码对话框
iewer.PrintDocumentWithSetup()
iewer.ClosePdfFile()

也可以看看