FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Otra pregunta de TPrinter
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Otra pregunta de TPrinter
Posted: Sun Mar 04, 2018 11:30 PM

Hola Amigos:

Nuevamente molestando con una duda en esta clase:

Cómo imprimir un campo MEMO usando la clase TPrinter?

Gracias por su apoyo

Saludos

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Otra pregunta de TPrinter
Posted: Mon Mar 05, 2018 07:50 AM
This is very easy from version FWH 16.04 onwards

Code (fw): Select all Collapse
@ <row>,<col> PRINT TO oPrn TEXT FIELD->MYMEMO ;
    SIZE <nWidth> ;
        INCHES/MM/CM/PIXEL ;
        FONT oFont ;
        LASTROW <lastrow>

The memo text will be printed starting from row <row>,<col> withing the width of <nWidth> using as many rows as may be required with word wrap. After printing, <lastrow> is assigned with value of last row used. We can start priting next text starting from <lastrow>.

Even printing of memofields in Reports also is equally simple.

If you are using previous versions of FWH, you need to split the memo into memolines yourself and print line by line. You have examples of this in

fwh\samples\testprn5.prg
fwh\samples\testprn6.prg
fwh\samples\report\rep20.prg
fwh\samples\report\rep23.prg
Regards



G. N. Rao.

Hyderabad, India
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Otra pregunta de TPrinter
Posted: Mon Mar 05, 2018 04:17 PM

Mr. Rao:
Thanks for your kind answer (as usualy), I'l try both options.

Best regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Otra pregunta de TPrinter
Posted: Mon Mar 05, 2018 04:21 PM

I am sorry. I made a typing mistake.
The new syntax is implemented in FWH 16.04
I am correcting my earlier post.

Regards



G. N. Rao.

Hyderabad, India
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Otra pregunta de TPrinter
Posted: Mon Mar 05, 2018 05:09 PM

Mr. Rao:

Ok, don't worry.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero

Continue the discussion