FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour imprimir jpg
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
imprimir jpg
Posted: Thu Feb 04, 2021 08:04 PM
Hola quisiera saber como puedo imrimir una imagen jpg en este c枚digo

Code (fw): Select all Collapse
聽 IF !lmoneda .and. !lsinleyenda
聽 聽 聽 oPrn:Cmsay (19,2.2,("Para impositiva, NETO $: "+ alltrim(transform((ttatal*nDolares),"@e 999,999.99") )+ " 聽IVA$: " + alltrim(transform(ntiva,"@e 99,999.99"));
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽+ " 聽PIB BA: " + alltrim(transform(nIbru,"@e 99,999.99"))+ " PIB CF: " + alltrim(transform(nibrucap,"@e 99,999.99"))),oFont2 )
聽 聽 聽 oPrn:Cmsay (19.4,2.2, "TOTAL $: " + 聽alltrim(transform(nTotal,"@e 999,999.99") ))
聽 聽endif


聽 // @ 19, 2.2 PRINT TO oPrn IMAGE "qr.jpg" SIZE 1,1 INCHES NOTRANSPARENT STRETCH 聽//prueba no funciona
聽 // @ 19, 2.2 image "qr.jpg" SIZE 1,1 聽 OF oPrn SIZE 1.1 // no funciona

聽

聽
if !lmoneda
聽 聽oPrn:Cmsay (19.4,2.2, "TOTAL $: " + 聽alltrim(transform(ntotal,"@e 999,999.99") ))
endif


聽 聽@ 20.5, 2.2 CM_INT25 AllTrim( aElectro:cCodbar ) of oPrn SIZE .8 聽 聽


聽 聽oPrn:Cmsay( 21, 14.5, "TOTAL:", oFont )

etc, etc


Es para reemplazar el c贸digo de barras por el QR, la impresi贸n es sobre una plantilla .emf
necesitaria imprimirlo d贸nde va el c贸digo de barras

Muchas Gracias
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: imprimir jpg
Posted: Sat Feb 06, 2021 05:21 AM
May we know what is the version of FWH you are using?

Code (fw): Select all Collapse
 @ 19, 2.2 PRINT TO oPrn IMAGE "qr.jpg" SIZE 1,1 INCHES NOTRANSPARENT STRETCH 聽//prueba no funciona


Please use CM instead of inches, because your measurement is in CMs

Code (fw): Select all Collapse
 @ 19, 2.2 PRINT TO oPrn IMAGE "qr.jpg" SIZE 1,1 CM  聽//prueba no funciona
Regards



G. N. Rao.

Hyderabad, India
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Re: imprimir jpg
Posted: Sat Feb 06, 2021 11:46 AM

Gracias por responderme Mr Rao la versi贸n que utilizo es la 17.02.
Prob茅 y ahora funciona perfecto. Yo hab铆a creado una funcion para pasar los cm a pixeles y tambi茅n funciona, pero siempre pefiero usar las utilidades de fivewin

Luis

Continue the discussion