Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Jan 2003
    Location
    Central Florida, USA
    Posts
    505
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Does anyone have any experience deleting printers via VBA? The user's platform is Windows XP, and the application (Access mdb) is in Office 2003.

    Thanks in advance for your ideas and suggestions.

    Ken

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Are you sure that it's a good idea to delete a printer using VBA?

    See How to Add/Delete Printer Programatically using API? for the code needed.

  3. #3
    4 Star Lounger
    Join Date
    Jan 2003
    Location
    Central Florida, USA
    Posts
    505
    Thanks
    5
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='794608' date='23-Sep-2009 15:28']Are you sure that it's a good idea to delete a printer using VBA?

    See How to Add/Delete Printer Programatically using API? for the code needed.[/quote]
    You may recall a few months back I asked about TIFF printers.

    Long story short, we acquired a PeerNet product "TIFF Image Printer". It allowed programming in the path and file name, similar to Stephen Lebans pdf (similar being a relative term).

    The code written to access the TIFF printer in code creates an instance of the TIFF printer and creates the TIFF files as expected. However, when done, it leaves the TIFF printer installed. So in one case, the user had over 300 printers, 294 of which were TIFF printers that had not been deleted.

    So I figured if there was a way to delete printers with names starting with values 0-9 I could delete them after printing. I hope this makes sense.

    Thanks for your help.
    Ken

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Thanks for the explanation!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •