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
Post a Comment