• Setting Visual Basic 6.0 printer form size

    Home » Forums » Developers, developers, developers » DevOps Lounge » Setting Visual Basic 6.0 printer form size

    Author
    Topic
    #492693

    OK….this is NOT a VBA question, didn’t know where else to post.

    I have been tasked to change a VB 6.0 program to handle a new size printer paper form. The code uses the “Printer” object. So for example looping thru with “printer.devicename” to find the right printer works just fine. But when I try to set a new paper size with “printer.papersize” or “printer.width” , etc, I get an error that says these attributes are READ only. I’ve search the web and I see that these attributes can be set.

    So I can only guess since the program previously just printed to standard paper that something about “printer” is not be defined, etc. I’m far from an experience VB programmer so any help pointing me in the right direction would be appreciated.

    BTW, the code is attached to a form not a separate module, don’t know if that is the issue. Thanks. Bob

    Viewing 1 reply thread
    Author
    Replies
    Viewing 1 reply thread
    Reply To: Setting Visual Basic 6.0 printer form size

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

    Your information: