Trocar impressora com Crystal Reports

Post Reply
kbelo
Posts: 34
Joined: Thu Jun 22, 2006 2:33 pm
Location: Criciuma-SC Brasil
Contact:

Trocar impressora com Crystal Reports

Post by kbelo »

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.
Marcelo Michels Alexandre
xHarbour 1.1 + Ws + Xmate + FW8.01 + BCC 5.82
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

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
Post Reply