Hi All
I have a sub report and in the NeedDataSource event I extract my data.
For each row I loop through the columns collection and if that column contains any text I create a textbox on the fly and add it to the report. Each row appears on a new page.
This all works fine apart from one major issue.
I have a sub report and in the NeedDataSource event I extract my data.
For each row I loop through the columns collection and if that column contains any text I create a textbox on the fly and add it to the report. Each row appears on a new page.
This all works fine apart from one major issue.
- If the first row contains 6 columns containing text then I generate 6 textboxes.
- If the second row only has 4 columns containing text then I add 4 textboxes but an additional 2 empty textboxes appear at the end.
I am assuming that these textboxes are remnants from the previous iteration but for the life of me I cannot get a handle on them.
Is there any way I can get a handle on the current page of the sub report so I can remove these empty textboxes?