c++ - WritePrinter not asking for PIN Code -
we have secure print.
i go control panel >> printers , devices >> printer >> printer preference here assign 4 digit pin code ..
i fire print word or excel ... go printer >> retrieve jobs >> select print job , enter pin code.
only job gets printed.
now our application has 2 source codes printing
while firing print our application print instantaneously done .... i.e. doesn't store job in queue , wait pin ... prints immediately
some source code
bresult = openprinter(szdevice, &hprinter, null); // szdevice contains printer name startdocprtinfo.pdocname = msg; startdocprtinfo.poutputfile = null; startdocprtinfo.pdatatype = "raw"; bprnterr = (startdocprinter(hprinter,1,(lpbyte)&startdocprtinfo) == 0); writeprinter(hprinter, &buffer[2], i, &cnt); enddocprinter(hprinter); closeprinter(hprinter);
~~~~~ code printing given document not waiting user enter pin code
question how make above code wait doing other applications ? there setting missing here ?
thanks in anticipation cp
i resolved this.
there no code changes. in our printer settings, unchecked "allow escape sequence" , worked.
thanks forum tho entertaining question. visit more questions , resolutions questions others raise
good luck clueless programmer :)
Comments
Post a Comment