Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

WritePrinter not asking PIN Code

$
0
0
Hi Codeguru


Customer has a Printer that has a secure printing.

He has configured via Control Panel >> Printing Preference >>
Secure Printing option in that page and assigned a 4 digit code.

After firing print form Word, Excel he goes to his printer press retrieve job, chooses his job , enters his pin code and only then the printer prints his document.


Our application has the following code to print document.

Code:

            WritePrinter(hPrinter, &buf[2], i, &cnt);
I Presume that the following information also would be necessary.
Code:

            OpenPrinter(szDevice, &hPrinter, NULL);
szDevice contains our printer name

and
Code:

        startDocPrtInfo.pDocName = msg;
        startDocPrtInfo.pOutputFile = NULL;
        startDocPrtInfo.pDatatype = "RAW";
StartDocPrinter(hPrinter,1,(LPBYTE)&startDocPrtInfo) == 0

Why doesn't WritePrinter just fires the print instead of asking for the PIN code that i set in the control panel ?

Thanks in anticipation
Soft

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images