memo printing with TReport
Publicado: Jue Ene 08, 2009 5:13 pm
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
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