Ola Amigos. ¿Cómo hago para cambiar la impresora con lo Crystal Reports? El ser ése con el TCRW solo él imprime en el estándar
de la impresora.
Ola Amigos. Como faço para trocar a impressora com o Crystal Reports.? Sendo que com a TCRW só imprime na impressora padrão.
Trocar impressora com Crystal Reports
Trocar impressora com Crystal Reports
Marcelo Michels Alexandre
xHarbour 1.1 + Ws + Xmate + FW8.01 + BCC 5.82
xHarbour 1.1 + Ws + Xmate + FW8.01 + BCC 5.82
kbelo
I use
PrinterSetup()
cPrinter := PrnGetName()
cDriver := PrnGetDrive()
cPort := PrnGetPort()
oCrw:SetPrinter32( cDriver, cPrinter, cPort)
Method SetPrinter32( cDriver, cPrinter, cPort) CLASS Crystal32
LOCAL nRet
LOCAL cFarProc := "PESelectPrinter"
cFarProc := GetProcAddress( ::hDll, cFarProc,.T.,_INT,LONG,LPSTR ,LPSTR,LPSTR,LONG)
nRet := CallDll( cFarProc, ::nJobHandle, cDriver , cPrinter , cPort ,0 )
RETURN self
Regards Maurizio
I use
PrinterSetup()
cPrinter := PrnGetName()
cDriver := PrnGetDrive()
cPort := PrnGetPort()
oCrw:SetPrinter32( cDriver, cPrinter, cPort)
Method SetPrinter32( cDriver, cPrinter, cPort) CLASS Crystal32
LOCAL nRet
LOCAL cFarProc := "PESelectPrinter"
cFarProc := GetProcAddress( ::hDll, cFarProc,.T.,_INT,LONG,LPSTR ,LPSTR,LPSTR,LONG)
nRet := CallDll( cFarProc, ::nJobHandle, cDriver , cPrinter , cPort ,0 )
RETURN self
Regards Maurizio