Free Support Forum - aspose.com

Set the name of the print job

I'm using version 6.6.0.0 of Aspose.Words.

Is there a way to set the document name that will show up in the print queue? Right now, if I create a document object and call document.print, then the document name in the print queue is set to "document". If I print the same file using Microsoft Word, the document name in the print queue is "Word - MyFile.doc".

Is there a way to set the document name that shows up in the print queue to the name of the file? The reason I ask is because I need to write an application that can keep up with the status of a set of files as they are going though the print queue by using WMI queries (job = New ManagementObject("Win32_PrintJob='" & jobName & "'")). I could do that if the items in the print queue were different. But, they all show up as 'document'.

Thanks,

Mike

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. The latest version of Aspose.Words supports this. Please see the following link for more information:

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

You can download the latest version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards.

What is the oldest version of Aspose.Words that supports this new Document.Print() that takes a ‘document name’ parameter? Is there any other way to do this should we not have access to that version of Aspose.Words?


Just a note, I’m using v6.2 and it doesn’t have it.

Thanks!

Hi

Thanks for your request. This feature was introduced in 8.0.0 version of Aspose.Words:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/entry207287.aspx

Every Aspose license carries one-year subscription for free upgrades to new versions released during this time. To check an expiration date of your license open the license file using notepad. You will see the following tags:

20110218

It means that you can free upgrade to version of Aspose.Words published before 02/18/2011.

Best regards.