Printing an invoice e.g
Hello everyone,
i try to print an invoice. There are several bands, also a Masterband and a detailband.
In this detailband are some lines to print; like the following:
1. Line: Pos. Quantity Description ......price // print every time
2. Line: Item-Nr. // print line only when not empty
3. Line: Memotext for the Item...
How can i shift the line 3 up when the line 2 is empty. And if line 2 and three are empty all two lines should not be printed and the next position of the invoice can be print.
i have tried with childbands for the line 2 and three and set the childband invisible in the onBeforePrint-event. But it doesnt work korrekt. if the line 3 is empty the line 2 also wont print.
Any solutions?
i try to print an invoice. There are several bands, also a Masterband and a detailband.
In this detailband are some lines to print; like the following:
1. Line: Pos. Quantity Description ......price // print every time
2. Line: Item-Nr. // print line only when not empty
3. Line: Memotext for the Item...
How can i shift the line 3 up when the line 2 is empty. And if line 2 and three are empty all two lines should not be printed and the next position of the invoice can be print.
i have tried with childbands for the line 2 and three and set the childband invisible in the onBeforePrint-event. But it doesnt work korrekt. if the line 3 is empty the line 2 also wont print.
Any solutions?
Comments
here is a scenario all detail data comes from same dataset
use child bands but rather than set them visible or invisible control which one is connected to the detail databand and which child is chained to which, in the obp of the detail databand.
thank you for your reply.
<Without knowing more about the detail dataset it is hard to say>
<here is a scenario all detail data comes from same dataset>
yes, all detail data comes from the same datset.
<use child bands but rather than set them visible or invisible control which one is <connected to the detail databand and which child is chained to which, in the obp <of the detail databand.
? i dont understand this.
at least i have one detailband for the first line, OK
then a childband that is linked to the detailband over the detailband.child-proterty.
then i have a second childband that is linked to the childband before over the childband.child-property. this constellation doesnt work if the second band ist invisible then the third band is also invisible. do you aunderstand my question? my english is not so prall.