Hello,
I`am a beginner NAV designer. I have a problem with sales invoice raport. I need to print every invoice in 3 copies.
On first i have to add a text "original", on 2nd and 3rd i have to add text "copy".
I found the solution of second part of that problem, i used "STRSUBSTNO(CopyText);" in SourceExpr field, but i don`t know how to add a "Original" text ONLY on first copy.
wojtekm
0
Answers
CurrReport.PAGENO := 1;
IF CopyNo = NoLoops THEN BEGIN
IF NOT CurrReport.PREVIEW THEN
SalesInvPrinted.RUN("Sales Invoice Header");
CurrReport.BREAK;
END ELSE
CopyNo := CopyNo + 1;
IF CopyNo = 1 THEN // Original
CLEAR(CopyTxt)
ELSE
CopyTxt := Text000;
Use a second variable Text009 and set it to "Original"
and change
CLEAR(CopyTxt) to CopyTxt := Text009
but I solved that problem in the other way: I create 2 checkboxes - first to create original text, second to create copy text.
****************
Wojtekm