|
-
May 3rd, 2005, 02:40 PM
#1
Thread Starter
Hyperactive Member
How can I set the DocumentName when Printing?
I'm using vb6 and the Printer object.
Everything works fine, except that that "job" name shows up in the printer queue named the same as my app.
If I print more than one document, I can't distinguish between the print jobs.
How can I set the "Document Name" when I print my jobs?
-
May 3rd, 2005, 03:06 PM
#2
Re: How can I set the DocumentName when Printing?
I don't think this can be done when you're using the Printer object simply because it doesn't expose the printer job ID. I think you need to start the job by calling the StartDoc API function and then use other printer spooler and/or GDI functions to do the actual printing.
-
May 3rd, 2005, 03:28 PM
#3
Thread Starter
Hyperactive Member
Re: How can I set the DocumentName when Printing?
Thanks, but nevertheless, I still need to know how to do it.
-
May 3rd, 2005, 04:15 PM
#4
Re: How can I set the DocumentName when Printing?
Here's a thread where this has been answered well:
http://www.vbforums.com/showthread.php?t=258243
-
May 3rd, 2005, 04:40 PM
#5
Re: How can I set the DocumentName when Printing?
merrion moved things around on his site, so that dll isn't available.
-
May 3rd, 2005, 06:36 PM
#6
Thread Starter
Hyperactive Member
Re: How can I set the DocumentName when Printing?
Thanks, but I've seen that thread and I don't want to use their dll.
I'd really prefer to just find out how they did it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|