Results 1 to 2 of 2

Thread: [Word 2003] Labelprinter list

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2009
    Posts
    3

    [Word 2003] Labelprinter list

    I need to write a little script that does the following things:

    - When you open a specific Word file, I need a extra list of available labelprinters in the network. Not the usual laser printer / copier. Only the brother labelprinters.
    The Word file is a file with some configuration about the size of the paper and marge settings. Height 6cm, Width 10cm and marge at 1 cm.
    - When you choose the right printer, it needs to set that printer as default for the next print.
    - After you're done it has to set back the default printer as it was then you started word.

    My experience in VB is minimal. I don't ask you to write the whole script but if someone could help me a littlebit into the right direction it would be great.

    Greetz

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [Word 2003] Labelprinter list

    i don't know how you can tell which printers are label printers or brothers, unless it is in the printer name or some other property

    to get all the printers available and the port for them see
    http://www.vbforums.com/showpost.php...8&postcount=11
    last code block
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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