• Deleting Printers through VBA

    Author
    Topic
    #462698

    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

    Viewing 0 reply threads
    Author
    Replies
    • #1178461

      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.

      • #1178467

        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.

        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

    Viewing 0 reply threads
    Reply To: Deleting Printers through VBA

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: