Selecting another printer using VB6 with CDR 9 in Win7

 

Hello,

I am trying to find a way to select another printer using a macro. For example, in Excel you can do that by using:

Application.ActivePrinter = "[PrinterName]"

...but of course that doesn't work in Coreldraw. I searched in the OLH to find the right code but I can't find it. Can smeone please help me out? So I first need to select another printer and then send the document to it using FilePrint. Thanks i.a. for your help.

Kind regards,

Tim.

Parents
No Data
Reply
  •  

    Hi again,

    I saw that I asked the same question in 2010 and someone replied:

    Try this:

    Sub printIt()
        With ActiveDocument.PrintSettings
           .SelectPrinter "myprinter"
        End With
    End Sub

    ...but that doesn't work. Using that code, it generates an errormessage that "the property or method is not supported by this object"  (Error 438). Hope I translated it right. Back then, in 2010 I also couldn't find a solution. Does anyone have other ideas? Thanks again,

    Kind regards.

    Tim.

Children