Comment not Printing Properly

Stivan_dsouza21Stivan_dsouza21 Member Posts: 218
While making PO,PI,SO,SI...etc
when User update the Header Comment whoose length is 100.I have restricted upto 2 Lines.
but Now wat happens his when User puts comment in
1st Line 60 Characters
2nd Line 30 Characters

I want these both Lines to be printed in posted Vocuher Report on Separate Lines
As 1st Line 60 Characters
and 2nd Line 30 Characters

User wants commented to be printed after amount in words in posted voucher:
In Posted Voucher what i have done is:
Below is the code i have written
Name DataType Subtype Length
totalcomment Text 200
commentline1 Text 100
commentline2 Text 100


Purch. Comment Line, Body (2) - OnPreSection()
CurrReport.SHOWOUTPUT(Comment <> '');
totalcomment:=totalcomment+"Purch. Comment Line".Comment;

G/L Entry, GroupFooter (5) - OnPreSection()
commentline1 := COPYSTR(totalcomment, 1, 100);
commentline2 := COPYSTR(totalcomment, 101, 100);

But then too the Comment is getting printed on Single line (1st line + 2nd line)
Thanks & Regards,
Stivan D'souza

Comments

Sign In or Register to comment.