PrintDocument
PdfViewer.PrintDocument method
使用默认打印机打印 Pdf 文档。
public void PrintDocument()
例子
[C#]
dfViewer viewer = new PdfViewer();
iewer.OpenPdfFile(@"d:\test.pdf");
iewer.AutoResize = true; //打印调整大小的文件
iewer.AutoRotate = true; //打印调整旋转的文件
iewer.PrintPageDialog=false;//打印时不产生页码对话框
iewer.PrintDocument(ps);
iewer.ClosePdfFile();
VisualBasic]
im viewer As PdfViewer = new PdfViewer()
iewer.OpenPdfFile(@"d:\test.pdf")
iewer.AutoResize = true; '打印调整大小的文件
iewer.AutoRotate = true; '使用调整后的旋转打印文件
iewer.PrintPageDialog=false;//打印时不产生页码对话框
iewer.PrintDocument(ps);
iewer.ClosePdfFile()
也可以看看
- class PdfViewer
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF