FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Trocar impressora com Crystal Reports
Posts: 34
Joined: Thu Jun 22, 2006 02:33 PM
Trocar impressora com Crystal Reports
Posted: Thu Jul 13, 2006 01:10 PM
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
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Trocar impressora com Crystal Reports
Posted: Thu Jul 13, 2006 02:56 PM

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

Continue the discussion