In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

memo printing with TReport

Xailer professional forum in English
Guest

memo printing with TReport

Mensaje por Guest »

Hi,
when I print memos with TReport the horizontal separator line is printed
after the first line and not after the last (an example is attached).
I use this code:
REPORT oReport ...
COLUMN OF oReport TITLE "Bezeichnung" CHARSIZE 48 DATA " "
....
oReport:nGridStyle := rgHORIZONTAL
oReport:OnChange := {|| ::PrintMemo( oReport ) }
....
METHOD PrintMemo( oReport ) CLASS TFormPrint
local cTmp, nIndex, cLine
local cText := ...
local nLineLen := 500
local nOffSet := 1
local nTextLen := Len( cText )
oReport:BackLine( 1 )
do while nOffSet <= nTextLen
cLine := MemoLine( cText, nLineLen, 1,,, .t., @nOffSet )
oReport:StartLine()
oReport:PrintAtCol( 4, cLine )
oReport:EndLine()
enddo
oReport:Newline()
RETURN NIL
Has anyone an idea what I could change?
Best regards, Timm.


Attached files
Responder