>I'm afraid that the web page you quoted doen't really help me to add textboxes or labels to the report at run-time. It is useful, but requires be to populate the report with the required number of labels and textboxes at design time and then allows me to populate the captions and datasources of these at run-time.
>
>What I think I need to do is to add labels to the report at run-time. I do not seem to be able to use:
>ReportName.Sections("PageHeader").Controls.Add rptTextBox
>
>Or something similar to this. If I could do this then my problem would be solved. However the datareport does not seem to allow me to do this.
>
>Looks like I'll have to use something else altogether!
Can't you add a great number of controls at design time and making the visible property according to what you need?
Another way of doing somehting like this that I really like is to export data to Excel.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com