PrinterDCFromName en FWH 12.04 (Solucionado)
Posted: Thu Apr 10, 2014 8:49 am
Buenos días amigos, estoy teniendo un problema con la función PrinterDCFromName() que viene definida en printdc.c
El tema es que al intentar obtener un "handle" éste siempre me devuelve cero y no se consigue procesar la impresión :
He estado mirando en el foro y veo que ya se estuvo discutiendo acerca de este problema http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27403&start=0 pero no se si finalmente se ha llegado a una conclusión.
Gracias,
- Code: Select all Expand view
- HB_FUNC( PRINTERDCFROMNAME ) // ( cDriver, cModel, cPort )
{
LPDEVMODE lpDevMode;
lpDevMode = (LPDEVMODE) GlobalLock( pd.hDevMode );
hb_retnl( ( LONG ) CreateDC( ( LPSTR ) hb_parc( 1 ),
( LPSTR ) hb_parc( 2 ),
( LPSTR ) hb_parc( 3 ),
lpDevMode ) );
GlobalUnlock( pd.hDevMode );
}
El tema es que al intentar obtener un "handle" éste siempre me devuelve cero y no se consigue procesar la impresión :
- Code: Select all Expand view
- ::hDC = PrinterDcFromName( , cModel, )
He estado mirando en el foro y veo que ya se estuvo discutiendo acerca de este problema http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27403&start=0 pero no se si finalmente se ha llegado a una conclusión.
Gracias,