Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Aug 2010
    Location
    USA
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Setting Visual Basic 6.0 printer form size

    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

  2. #2
    3 Star Lounger HiTechCoach's Avatar
    Join Date
    Sep 2011
    Location
    Oklahoma City, OK
    Posts
    200
    Thanks
    0
    Thanked 31 Times in 30 Posts
    Proably need to move your post the the Windows Programming (Visual Studio .NET, C#, C++, VB, VBScript) forum here http://windowssecrets.com/forums/for...ws-Programming
    Boyd Trimmell aka HiTechCoach (Access Information here)
    Microsoft MVP - Access Expert
    "If technology doesn't work for people, then it doesn't work."

  3. #3
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,435
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Bob,

    I moved your thread per HTC's suggestion as it should get more exposure to the people who can best answer it.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •