Free Support Forum - aspose.com

Setting the "Document Name" when Printing a Document

Hello,
We have a customer who uses MFD printers which allow prints to be queued up and printed later on.
The attached image shows the information for a “Word” document produced via Aspose.Words. The customer is saying that all the prints have Document Name set to “Document” so they do not know which print is which.

We call the Aspose.Words DLL from .NET so I have been running in debug looking at the properties of the doc and printersettings objects trying to find a property that would set the Document Name. I though that the printersettings.PrintFileName would be it but it was not.

Is there a way of setting Document Name?

Thanks,
Mike

Hi Mike,

Thanks for your inquiry. Sure, you can. Just use the following overload of Print method and specify document name as the second parameter:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.document.print_overload_4.html

Hope this helps.

Best regards,

Thank you for your quick answer!