T
Tim
Hi,
I am creating a printing engine and I am cycling though my recordset. Each
item gets added to an ArrayList. Once there are more items that will fit on
the page I add the item ArrayList to a pages ArrayList. Seems pretty simple
so far.
However, when I clear the items ArrayList it clears everything. What I am
trying to do is add a page worth of items to the pages ArrayList, clear it
and then create another page worth of items etc...
Can someone help me?
This is the code. Pages and PageItems are both ArrayList.
[code to add to page items]
this.Pages.Add(this.PageItems);
this.PageItems.Clear();
[loop]
I am creating a printing engine and I am cycling though my recordset. Each
item gets added to an ArrayList. Once there are more items that will fit on
the page I add the item ArrayList to a pages ArrayList. Seems pretty simple
so far.
However, when I clear the items ArrayList it clears everything. What I am
trying to do is add a page worth of items to the pages ArrayList, clear it
and then create another page worth of items etc...
Can someone help me?
This is the code. Pages and PageItems are both ArrayList.
[code to add to page items]
this.Pages.Add(this.PageItems);
this.PageItems.Clear();
[loop]