Results 1 to 6 of 6

Thread: How can I set the DocumentName when Printing?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    Exclamation 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?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    Re: How can I set the DocumentName when Printing?

    Thanks, but nevertheless, I still need to know how to do it.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: How can I set the DocumentName when Printing?

    merrion moved things around on his site, so that dll isn't available.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    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
  •  



Click Here to Expand Forum to Full Width