C# 不使用目录对话框打印固定文档

C# 不使用目录对话框打印固定文档,c#,printing,printdocument,printdialog,fixeddocument,C#,Printing,Printdocument,Printdialog,Fixeddocument,我想打印带有“Microsoft打印到PDF”且不显示选择目录对话框的固定文档。我知道我可以通过将true传递到PrinterSettings:PrintFileName和PrintToFile: PrinterSettings.PrinterName = "Microsoft Print to PDF"; PrinterSettings.PrintFileName = "C:\\Users"; PrinterSettings.PrintToFile = true; 有一种方法可以传递打印机

我想打印带有
“Microsoft打印到PDF”
且不显示选择目录对话框的固定文档。我知道我可以通过将
true
传递到
PrinterSettings
PrintFileName
PrintToFile

PrinterSettings.PrinterName = "Microsoft Print to PDF";
PrinterSettings.PrintFileName = "C:\\Users"; 
PrinterSettings.PrintToFile = true;
有一种方法可以传递打印机名称:

printDialog.PrintQueue = new PrintQueue(new PrintServer(), "printer name" );
但我不知道是否可能或者如何将printerSettings的其余参数传递给PrintDialog

到目前为止,我一直使用这种方法打印固定文档

printDialog.PrintDocument(this.fixedDocument.DocumentPaginator, "Description");
我知道可以将printerSettings传递到
PrintDocument
,但现在我不知道如何将这些
FixedDocument
传递到
PrintDocument

我要补充的是,我有一个带有png的位数组,它被转换成
BitmapImage
,然后放入wpf
UserControll
Image
,最后放入
FixedDocument.Pages