Results 1 to 2 of 2

Thread: Setting Printer.PaperBin causes runtime error 380 (invalid property value)

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2017
    Posts
    14

    Setting Printer.PaperBin causes runtime error 380 (invalid property value)

    Hello;

    I have taken over the maintenance/upgrade of an old vb6 program.

    During some testing, I discovered that this command:

    Printer.PaperBin = CInt(strINVtraySRVSYS5)

    caused RunTime error 380 (invalid property value) when I used the M$ Print to PDF in W10.

    Did some research on Google and found that not all printers support all properties (of course).

    My question is: Can I get a list of the properties that a particular printer supports or does not support and the range of values accepted? (If so, how?)

    and... this old program sets numerous other Printer properties. Is there a preferred way to handle this error?

    TIA

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Setting Printer.PaperBin causes runtime error 380 (invalid property value)

    I'd just use simple error trapping to allow this to fail silently.

    As for the rest, you can use the DeviceCapabilities() API call to retrieve lots of info:
    Attached Images Attached Images  
    Attached Files Attached Files

Posting Permissions

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



Click Here to Expand Forum to Full Width