Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

I'am not able to get the printer collection objets (imgxprint)

Last post 28 Mar 2007, 2:13 PM by denis. 2 replies.
Sort Posts: Previous Next
  •  25 Mar 2007, 2:42 PM 11730

    I'am not able to get the printer collection objets (imgxprint)

    I just try to get the name of all the printers installed on the computer, but I cannot find the way to do it

    I tried :

    Dim Id2 As ImgXPrint_Printer
    Dim Toute As ImgXPrint_Printers


    For Each Id2 In Toute
    ....blalbla
    Next

    I certainely missed some Set..., but i can't find the right one :-(

    Thanks for your help
     

    Filed under:
  •  26 Mar 2007, 4:49 PM 11737 in reply to 11730

    Re: I'am not able to get the printer collection objets (imgxprint)

    This works for me. 

    Dim prnt As ImgXPrint
    Set prnt = New ImgXPrint

    Dim item As ImgXPrint_Printer
    For Each item In prnt.Printers
        Debug.Print item.Name
    Next

    Set prnt = Nothing


    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  28 Mar 2007, 2:13 PM 11754 in reply to 11737

    Re: I'am not able to get the printer collection objets (imgxprint)

    Great, thanks, you I will try it
View as RSS news feed in XML