I am trying to recreate a multi-page invoice. I have it working as a single page but I think I need to abandon what I have already done use an array to cycle thru the data.
Here is my data.
[TABLE="width: 380"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Customer[/TD]
[TD]Invoice[/TD]
[TD]Payment[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John K Company[/TD]
[TD="align: right"]3060453[/TD]
[TD="align: right"]$1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]John K Company[/TD]
[TD="align: right"]3060453[/TD]
[TD="align: right"]$7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John K Company[/TD]
[TD="align: right"]3060453[/TD]
[TD="align: right"]$1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Pete T Company[/TD]
[TD="align: right"]3060461[/TD]
[TD="align: right"]$100[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]George S Company[/TD]
[TD="align: right"]3060500[/TD]
[TD="align: right"]$200[/TD]
[/TR]
</tbody>[/TABLE]
Notice that the invoice # is repeated for John K Company in rows 2 - 4. This means that invoice has 3 pages. I need code for an array that will cycle thru the first 3 rows and place the Customer, Invoice , and Payment on 3 different Sheets (1) (2) and (3). Once I print this invoice (3060453) it will then continue the array process and in the next case create a single page Invoice on Sheet (1) for Pete T Company. In each case I need a Variable for Page Counter so I can put it on the 1st page (In the first example Page 1 of 3)
Thanks In advance for any help you can provide.
Maxfli[TABLE="width: 370"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Here is my data.
[TABLE="width: 380"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Customer[/TD]
[TD]Invoice[/TD]
[TD]Payment[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John K Company[/TD]
[TD="align: right"]3060453[/TD]
[TD="align: right"]$1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]John K Company[/TD]
[TD="align: right"]3060453[/TD]
[TD="align: right"]$7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John K Company[/TD]
[TD="align: right"]3060453[/TD]
[TD="align: right"]$1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Pete T Company[/TD]
[TD="align: right"]3060461[/TD]
[TD="align: right"]$100[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]George S Company[/TD]
[TD="align: right"]3060500[/TD]
[TD="align: right"]$200[/TD]
[/TR]
</tbody>[/TABLE]
Notice that the invoice # is repeated for John K Company in rows 2 - 4. This means that invoice has 3 pages. I need code for an array that will cycle thru the first 3 rows and place the Customer, Invoice , and Payment on 3 different Sheets (1) (2) and (3). Once I print this invoice (3060453) it will then continue the array process and in the next case create a single page Invoice on Sheet (1) for Pete T Company. In each case I need a Variable for Page Counter so I can put it on the 1st page (In the first example Page 1 of 3)
Thanks In advance for any help you can provide.
Maxfli[TABLE="width: 370"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]