Hi folks.
I hope somebody can help me with this problem. I am working on maintaining a large program.
The problem which I have is related to printing documents. On the computer are installed two printers:
1) Bullzip PDF Printer
2) HP LaserJet (default printer)
I had successfully called printer dialog, chose Bullzip PDF Printer for printing. The only first document was printed with Bullzip printer, all other documents are printed with HP LaserJet without showing printing dialog.
Here is my code:
PRNW-OPEN.
*-------- move 1 to Prn-Flags.
move 0 to Prn-WinHand.
move "Greska kod OPEN Printera !!! " to Prn-Errtxt.
MOVE 128 TO Prnw-len.
MOVE PrnDoc-naz TO Prnw-InCHR.
PERFORM PRNW-Title-Len.
IF Prn-IndOPEN equal zero THEN;
CALL "PC_PRINTER_OPEN" using Prn-Handle, Prn-DOC,
by value Prn-Flags
by value Prn-WinHand
returning Prn-RetCode.
if Prn-RetCode not equal zero PERFORM PRNW-ERR.
MOVE 1 TO Prn-IndOPEN.
move zero to Num-Lin.
What I want to achieve is:
1) to choose in the printing dialog the printer and to use it for printing all separate documents (one page is one file with different name).
2) or from the code to tell NetExpress which installed pritner to use for printing without showing the print dialog