Dear colleagues:
The program bellow is working correctly if I choose the default printer, but if a choose another printer in the network, it doesn't obey ! It prints in the default printer !
What can be done for the program bellow to really obey the user choice (another network printer) ?
Please note: I am not using a report (.FRX)and do not intend to use it in this case.
Thanks,
Cadeira
* CAO.PRG
SET DEVICE TO SCREEN
ACTIVATE WINDOW TelaPadrao2
CLEAR
SET DEVICE TO PRINTER PROMPT
SET CONSOLE OFF
SET DEVICE TO PRINTER
PROCEDURE CABECFAT
SET COLOR TO RGB(0,0,0, 0,0,0), RGB(255,255,255, 255,255,255)
SET PRINTER OFF
SET PRINTER ON
SET PRINTER FONT 'Courier New' , 11
@11, 4 SAY EMPRDAD
@12,15 SAY YCNOME + " ("+LTRIM(STR(YCCODI))+")"
@13,15 SAY YCENDE
EJECT
SET PRINTER OFF
SET PRINTER TO DEFAULT
SET COLOR TO RGB(51,51,51, 204,204,204), RGB(0,0,0, 255,255,255)
DEACTIVATE WINDOW TelaPadrao2
RETURN
The program bellow is working correctly if I choose the default printer, but if a choose another printer in the network, it doesn't obey ! It prints in the default printer !
What can be done for the program bellow to really obey the user choice (another network printer) ?
Please note: I am not using a report (.FRX)and do not intend to use it in this case.
Thanks,
Cadeira
* CAO.PRG
SET DEVICE TO SCREEN
ACTIVATE WINDOW TelaPadrao2
CLEAR
SET DEVICE TO PRINTER PROMPT
SET CONSOLE OFF
SET DEVICE TO PRINTER
PROCEDURE CABECFAT
SET COLOR TO RGB(0,0,0, 0,0,0), RGB(255,255,255, 255,255,255)
SET PRINTER OFF
SET PRINTER ON
SET PRINTER FONT 'Courier New' , 11
@11, 4 SAY EMPRDAD
@12,15 SAY YCNOME + " ("+LTRIM(STR(YCCODI))+")"
@13,15 SAY YCENDE
EJECT
SET PRINTER OFF
SET PRINTER TO DEFAULT
SET COLOR TO RGB(51,51,51, 204,204,204), RGB(0,0,0, 255,255,255)
DEACTIVATE WINDOW TelaPadrao2
RETURN