in

Data Techniques Forums

How to set Printer Default in VB6 ?

Last post 06-29-2008 3:56 AM by farmer. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-29-2008 3:56 AM

    How to set Printer Default in VB6 ?

    Hi,

    I used FaxMan Jr 2.04, and I cannot get/change the Faxman Printer Default value in VB6, I failed to get the object "DefaultSettings Object" from FMPrinter v4 control. I used following code to try to install a new printer with selected resolution vaule but failed. I always got High resolution printer.

                Set FaxPrinterDefault = FmPrinter1.PrinterDefaults
                FaxPrinterDefault.Resolution = Low
                FmPrinter1.PrintFilesPath = App.Path
                FmPrinter1.InstallPrinter App.Path

    And I also used this code to  modifybut still failed while I check resolution value from "Control Panel/Printer and Fax".

            Set FaxPrinterDefault = FmPrinter1.PrinterDefaults
            FaxPrinterDefault.Resolution = Low

    Please tell me the correct coding to change PrinterDefault value.

    Best Regards,

    Farmer Tien

    Filed under:
Page 1 of 1 (1 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.