Page 1 of 1

Print Table

Posted: Sun May 24, 2020 10:26 am
by Silvio.Falconi
I tried to print a table aData but On Paper there is nothing

I made
nRow:= 7.5
nCol:= 1

AaDd(aData,{nElemento,cTipoElemento, dCheckin, dCheckout, cGuest} )

@ nRow, nCol PRINT TO oPrn TABLE aData ;
SIZE 100,30 FONT oFont BORDER TITLE "WW" CM

Re: Print Table

Posted: Sun May 24, 2020 12:54 pm
by nageswaragunupudi
fwh\samples\print01.prg

Image

Re: Print Table

Posted: Sun May 24, 2020 4:30 pm
by Silvio.Falconi
thanks I wish create a small function to print any data array on my app

Re: Print Table

Posted: Mon May 25, 2020 8:04 pm
by Silvio.Falconi
the only thing that could be useful is to make small changes:
I ran the function to simulate the list of a body of an invoice: if there was the possibility of programming that in the n row must divide the table by the new page, it would perhaps be nice.
another addition could be the possibility to choose the type of line (pen) or to insert a line after each record
Finally the possibility to calculate the total for those numeric columns.