gajjarjaydeep
18th August 2014, 09:44
Part Invoice is printing in range of records and I want to print header (Part No, Part Code, Description, Qty, and Amount) only if details are present for each invoice. The problem is that in last page of each invoice there is only total summary printing and there is no part lines present but part header is getting printed. So, please suggest how to skip header.
bhushanchanda
18th August 2014, 10:54
Hi,
Two options:-
1. If you have access to program script, initialize one variable say printed = 0. When you are doing a rprt_send() you can assign a value to that variable say printed = 1.
Now, in your layout, put print expression for header as printed = 1. Now, it will be printed only when there is some data in the details.
2. If you don't have access to program script, check in the before.layout section of header that if there are any detail lines to be printed. As suggested in point 1, initialize a variable and assign if found.
If nothing found do lattr.print = false
vamsi_gujjula
18th August 2014, 14:25
gajjar sahib..., :P
Please post the screen shot.
waise you can handle it in report script .