Search found 114 matches: oprinter

Return to advanced search

Re: Dot Matrix Printing on non-standard form

Darrell, Maybe this from my notes will help. James --------------------------- oPrinter:setSize( nWidth, nHeight ) Where nWidth and nHeight are in tenths of a millimeter. 25.4 millimeters per inch So to set the size in inches: oPrinter:setSize( 254 * nWidth, 254 ...
by James Bott
Wed Jan 30, 2013 3:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dot Matrix Printing on non-standard form
Replies: 3
Views: 786

Dot Matrix Printing on non-standard form

... 9656) 1. Before PRINT nWid := ROUND( 8.5 * 254, 0) // 8.5 inches wide nLen := ROUND( 12 * 254, 0) // 12 inches wide PrnSetSize( nWid, nLen ) PRINT oPrinter FROM USER PRINT NAME "AWB" PREVIEW MODAL . . ENDPRINT nWid := ROUND( 8.5 * 254, 0) nLen := ROUND( 11 * 254, 0) PrnSetSize(nWid, nLen ...
by cdmmaui
Wed Jan 30, 2013 6:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dot Matrix Printing on non-standard form
Replies: 3
Views: 786

New FTDN September/Septiembre 2012 (FWH 12.09)

... (if available), to achieve the same * Enhancement: Class TPrinter Method Setup() returns a logical value so you can use it this way: if ! oPrinter:Setup() return nil endif http://forums.fivetechsupport.com/viewtopic.php?p=135916#p135916
by Antonio Linares
Thu Oct 11, 2012 12:38 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN September/Septiembre 2012 (FWH 12.09)
Replies: 11
Views: 4970

Re: Problemas con Tprinter y Tdosprn

Pedro,

Cuando defines un Font especificas su impresora previamente creada ?

DEFINE FONT oFont NAME ... SIZE ... OF oPrinter
by Antonio Linares
Sun Feb 12, 2012 10:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con Tprinter y Tdosprn
Replies: 12
Views: 4188

Impresion de TEXTO en Horizontal.

... Tiempo Ejemplo Ejemplo poner lo siguiente: C C 1 A O 0 ARTICULO: XXXXXXX J N Descripcion :XXXXXXXXXXXXXX A P Z A que lo hago de forma normal: oPrinter:CmSay( 010.300, 001, "ARTICULO:"+ARITUCULO->Clave_Art, oFont) En lo Vertical no tengo problema. pero Quiero imprimir una leyenda ...
by Nemo22
Sun Jan 29, 2012 1:47 am
 
Forum: FiveWin para CA-Clipper
Topic: Impresion de TEXTO en Horizontal.
Replies: 1
Views: 1322

Re: The temporal metafile could not be created

Normally happens when oPrinter:Startpage() is not paired correctly with oPrinter:EndPage().
by hua
Fri Jan 06, 2012 6:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: The temporal metafile could not be created
Replies: 3
Views: 586

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

Antonio,

Me alegro de que el asunto quede resuelto :-)
by Antonio Linares
Fri Dec 16, 2011 12:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

Antonio, Encontrado el problema; resulta que yo utilizo una RPreview modificada por algun compañero del foro, siento no recordar el nombre; es una RPreview que lleva una TListView con las miniaturas de las paginas. Pues bien, he puesto la preview original de fwh y YA NO HAY CONSUMO DE MEMORIA !! Muc...
by A.Martinez
Fri Dec 16, 2011 8:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

Antonio, RESPUESTA 1: Pues siento decirte que creo que NO es la StretchDIBits() porque si modifico lo que me has mandado y pongo: ...//        if( ( wWidth == 0 ) || ( wHeight == 0 ) )        if( 1 )           SetDIBitsToDevice( hDC, wCol, wRow, lpBmp->biWidth,                        ...
by A.Martinez
Thu Dec 15, 2011 7:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

Antonio,

Si no haces el PREVIEW (quitando esa clausula), se produce la misma pérdida ?

gracias por tus pruebas,
by Antonio Linares
Thu Dec 15, 2011 7:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

Buscando en google veo que otros programadores (en otros lenguajes) han tenido problemas tambien con esta función:

http://stackoverflow.com/questions/8036855/how-to-handle-gdi-resource-leak

Quizá eso nos de una pista de por donde buscar...
by Antonio Linares
Thu Dec 15, 2011 7:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

Antonio, Bueno, lo importante es que ya sabemos de donde viene el problema: función StretchDIBits(). Ahora pensemos una estrategia... Miremos por ejemplo el código que use Wine para la función StretchDIBits(): http://cvs.winehq.org/cvsweb/wine/dlls/gdi/Attic/dib.c?rev=1.22&co...
by Antonio Linares
Thu Dec 15, 2011 7:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

A. de Antonio :D He puesto el codigo que me has enviado y he probado y todo sigue igual (sigue consumiendo memoria). Luego he probado a comentar la StretchDIBits( ) y entonces he observado que NO pinta nada pero NO consume memoria.     //       StretchDIBits( hDC, wCol, wRow...
by A.Martinez
Thu Dec 15, 2011 6:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

A. (Antonio, Adolfo, Alfonso... ?) :-) Prueba a implementar la función DibDraw() en tu aplicación y asi puedes hacerle modificaciones. Añade este código al final de tu PRG principal: #pragma BEGINDUMP#include <windows.h>#include <hbapi.h>static LPSTR DibBits( LPBITMAPINFOHEADER lpBmp...
by Antonio Linares
Thu Dec 15, 2011 6:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184

Re: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?

Antonio, La memoria, además de con GlobalMemoryStatusEx(), lo compruebo con una utilidad externa. Ambos devuelven siempre el mismo %, con lo que imagino que esta bien. En todo caso, cuando la carga de memoria es muy alta..., no se el %, entonces empieza a no pintar los bitmaps, como si no tuviese me...
by A.Martinez
Thu Dec 15, 2011 5:52 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Replies: 15
Views: 4184
PreviousNext

Return to advanced search