开发者

c# printdocument

I am using printDocument to print from a list view. This all works fine. Originally when the print dialog opened I could use the default printer or choose another (s开发者_如何学Pythonuch as adobe pdf or send to one-note). Now the dialog still displays but no matter what option I choose always prints to the default printer. I haven't intentionally made any changes but may have inadvertently changed a property or something. Does anyone have any ideas of what I may have done?


 PrintDialog printDialog = new PrintDialog();
 printDialog.ShowDialog();
 printPreviewDialog1.Document.PrinterSettings = printDialog.PrinterSettings;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜