Quantcast
Channel: Print a WPF User Control
Viewing all articles
Browse latest Browse all 3

Print a WPF User Control

$
0
0

My need is very simple  i want to save a wpf user control which is current active window to an xps file.

The only requirement i have is that it should be saved as an xps file to the disk with a name that i am providing and not ask the user for the name of the dialog.

There are couple of things i have already accomplished

1. Print Queue of the print dialog i can set the printer as Microsoft xps document writer. 

2.PrintDialog.PrintVisual will print without invoking the dialog and do a silent print to the Microsoft xps document writer.

The only place i am stuck is i am not able to control the name of the xps file to save to programaticaly without prompting a dialog to the user.

any help is deeply appreciated.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images