Hi Ken, that name is suggested because that's how the application is recognized, because you're basically printing from VB. What name do you think it should suggest by default when printing from VB, you mean it should recommend as with Word the name of the VB file?
I was just trying to understand what logic DoPDF uses to select the default file name. Clearly, MS Word somehow exposes its file name. I was wondering if there was any way for my VB application to expose the file name I would like used as the default?
Hi Ken, unfortunately we cannot do anything about printing from VB. The problem is that this is how VB sends the filename for printing, and we can only work with the filename it sends.
So if you have programmed a VB application that prints, maybe there's a way you can programmatically send the correct title for printing.
Thanks again Softland. I looked to see if there was a general property I could set but didn't find anything meaningful. Can you tell me what Windows system call you make to retrieve the file name or the name of the parameter passed that contains the file name? This might help me figure out how to set the file name before I invoke the printing.
Ken