wpf - PrintCapabilities not returning Duplex for enabled printer -


i have hp 6500 printer print in duplex when set appropriately.

i'm working on program print automatically other printers, notice problem printcapabilities printer - not contain jobduplexalldocumentscontiguously - duplex options.

the method below. can't post results because long. know why not work expected? confirm printer can print duplex before send job, how?

rick

here how printcapabilites:

  dim pq printing.printqueue = printing.localprintserver.getdefaultprintqueue             ' stored printticket has duplex = twosidedshortedge             dim ps rg.data.program_setting = rg.data.program_setting.getobject(environment.machinename)             dim cs rg.data.computer_setting = ps.value_object_cast             dim pt printing.printticket = cs.print_ticket_document             'confirm duplex set             msgbox(pt.duplexing.tostring)             dim ms = pq.getprintcapabilitiesasxml(pt)             ms.position = 0             using fs = rg.utilities.gettempfilestream(".xml")                 fs.write(ms.toarray, 0, ms.length - 1)                 fs.close()             end using 

i have tried pq.getprintcapabilitiesasxml() , same results:


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -