J
jo_mue
Guest
Hey there,
i figured out printing a WPF UserControl with the default printer (which is actually the MS PDF printer).
My code is something like this:
PrintDialog dialog = new PrintDialog();
dialog.PrintTicket.PageOrientation = PageOrientation.Landscape;
//Layout and Measure the control
...
// Print Visual
dialog.PrintVisual(userControl, name);
The printed pdf is like i expected. So here is my problem:
can i set the filename in the printer programatically without user interaction?
thank you very much
best regards
Continue reading...
i figured out printing a WPF UserControl with the default printer (which is actually the MS PDF printer).
My code is something like this:
PrintDialog dialog = new PrintDialog();
dialog.PrintTicket.PageOrientation = PageOrientation.Landscape;
//Layout and Measure the control
...
// Print Visual
dialog.PrintVisual(userControl, name);
The printed pdf is like i expected. So here is my problem:
can i set the filename in the printer programatically without user interaction?
thank you very much
best regards
Continue reading...