Setting print ticket description when writing with XpsDocumentWriter

If I print to a PDF driver (Bullzip) using PrintVisual as in

pd.PrintVisual(myPage, "Document name");

then the Bullzip driver gives a default filename of "Document Name.pdf" which is ideal. But I'm actually wanting to use an XpsDocumentWriter rather than printing a single visual.

Is there any way of setting the Document description - I can't see anything that might do it in PrintDialog, PrintTicket or PrintQueue.

Tx

Andrew

Answers


It's:

pd.PrintQueue.CurrentJobSettings.Description = "Document Name";

Need Your Help

Conditional formatting does not work or formula is incorrect

excel excel-formula conditional-formatting

My formula checks for value in 7 cells merged together and outputs TRUE if value meets the condition. Formula works fine when I apply it to every cell individually as shown on the image, but when I...

How can I get the coordinates of a sprite's position in pygame?

python position pygame sprite

What' I'm trying to do is prevent my sprite from going off the borders in a game I'm writing.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.