Centrar un texto con TPrinter

Centrar un texto con TPrinter

Postby softruz » Thu May 03, 2007 3:20 pm

Muy buenas, estoy interesado en centrar un texto con TPRINTER,sabiendo el texto a centrar, el font del texto y si la impresion es vertical o horizontal.

Gracias.
Un Saludo.
softruz
 
Posts: 485
Joined: Fri Feb 09, 2007 10:34 am

Re: Centrar un texto con TPrinter

Postby thefull » Thu May 03, 2007 4:54 pm

softruz wrote:Muy buenas, estoy interesado en centrar un texto con TPRINTER,sabiendo el texto a centrar, el font del texto y si la impresion es vertical o horizontal.

Gracias.
Un Saludo.


Bajate las clase TImprime y TUtilPrn, estan por aqui en el foro de utilidades,
y ahi tienes el codigo fuente que realiza eso y mucho mas...
Saludos
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
User avatar
thefull
 
Posts: 731
Joined: Fri Oct 07, 2005 7:42 am
Location: Barcelona

Postby sysctrl2 » Thu May 03, 2007 10:21 pm

PRINT oPrn NAME "Reporte de nomina semanal ..." PREVIEW
DEFINE FONT oFnt1 NAME "Arial" SIZE 0, -08 OF oPrn bold

PAGE
oPrn:CmSay(1, 01, 'TEXTO NORMAL', oFnt1 )

_centraCm(1, 'TEXTO CENTRADO', oPrn, oFnt1 )

ENDPAGE
ENDPRINT


FUNCTION _centraCm(nRen,cValor, oPrn, oFont )
oPrn:CmSay(nRen,0,cValor,oFont,oPrn:nHorzRes,,,2 )
RETURN (nil)


saludos.
Cesar Cortes Cruz
SysCtrl Software
Mexico

' Sin +- FWH es mejor "
User avatar
sysctrl2
 
Posts: 1004
Joined: Mon Feb 05, 2007 7:15 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 103 guests