ユーザーにプロンプトを表示せずに、WPF FlowDocument を特定のプリンターに印刷しようとしています。プリンターはPDFコンバーターです。
これは、デフォルトのプリンターに印刷されることを除いて、うまく機能します。
PrintDialog pd = new PrintDialog();
var doc = ((IDocumentPaginatorSource) RTB.Document).DocumentPaginator;
// I would like to explicitly set the printer to print to here.
pd.PrintDocument(doc, "Print Document");
WinForms には、必要なプリンターに設定できる PrinterName プロパティを持つドキュメントに System.Drawing.Printing.PrinterSettings オブジェクトがありますが、WPF には表示されません。