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? ;)

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:12AM
    Without knowing more about the detail dataset it is hard to say
    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.
    ;)
  • edited 10:12AM
    Hello gordk,

    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.