Reputation: 345
Using C# and the PrintDocument() Class, does anyone know how to include the Document Name when sending the print job to the printer? Where the document name would appear on the LCD, it's always blank.
Upvotes: 1
Views: 2576
Reputation: 937
From MSDN:
PrintDocument.DocumentName: Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
Code sample:
// Provide a friendly name, set the page number, and print the document.
printDoc.DocumentName = "My Presentation";
Upvotes: 2