TUtilPRN - no me queda centrado.

TUtilPRN - no me queda centrado.

Postby goosfancito » Tue Oct 09, 2018 9:35 am

Buenos dias.
Estoy usando la TUtilprn y los titulos no me quedan centrados. Que estoy haciendo mal?
gracias,

Code: Select all  Expand view
  DEFINE FONT oFnt name "Arial" size 0, 10 BOLD OF ::oPrn

   utilprn ::oUtil ;
   msg ;
   {"FECHA"};
   textfont oFnt;
   At 3.5, 1;
   EXPANDBOX 0.25, .5;
   CENTER

   utilprn ::oUtil ;
   msg ;
   {"Declaración", "de Domicilio"};
   At 3.5, 3.2;
   textfont oFnt ;
   EXPANDBOX 0.25, .5;
   CENTER

   utilprn ::oUtil ;
   msg ;
   {"Union", "Convivencial"};
   At 3.5, 6.15;
   textfont oFnt;
   EXPANDBOX 0.25, .5;
   CENTER

   utilprn ::oUtil ;
   msg ;
   {"Dec. Superv.", "Presencial"};
   At 3.5, 9.15;
   textfont oFnt;
   EXPANDBOX 0.25, .5;
   CENTER

   utilprn ::oUtil ;
   msg ;
   {"Dec. Superv.", "No presencial"};
   At 3.5, 12.15;
   textfont oFnt;
   EXPANDBOX 0.25, .5;
   CENTER

   utilprn ::oUtil ;
   msg ;
   {"Declaraciones", "Juradas"};
   At 3.5, 15.3;
   textFont oFnt;
   EXPANDBOX 0.25, .5;
   CENTER


Image
https://1drv.ms/u/s!AptIZn_i9BHGzkMSifsIWgPiQ_iw
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: TUtilPRN - no me queda centrado.

Postby nanoespinoza » Wed Oct 10, 2018 7:43 pm

Estimado

Tenía el mismo problema que usted, lo resolví usando xPadC()

LOCAL nRell:=600
...
UTILPRN ::oUtil 1.30,nMargIzq+0.10 SAY xPadC(cTitulo,nRell,) FONT ::oFnt6 COLOR 16711680

nRell varia de acuerdo a cada caso.

Saludos

Fernando Espinoza A.
nanoespinoza
 
Posts: 139
Joined: Thu Mar 16, 2017 4:08 pm
Location: Ecuador

Re: TUtilPRN - no me queda centrado.

Postby goosfancito » Wed Oct 10, 2018 10:49 pm

Gracias!
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests

cron