How to get the filename from PrintJobEventArgs on a given event

Apr 16, 2015 at 10:19 AM

I would like to ask if it is possible to get the exact filename of the file been printed.

From what i have discovered so far depending on the application that initiated the print job a suffix of prefix is added to the Document property i.e. if i print a file from MS Word a "Microsoft Word - " is added before the filename.

Thanks in advance.
Apr 16, 2015 at 3:36 PM
Hi - I'm afraid not, because it is entirely up to the application performing the print to decide what it puts in the document property.

For example in internet explorer it often just puts "Downstream document" with no file name at all.
Marked as answer by alexopoulos on 4/16/2015 at 8:13 AM