Generate a dynamic number of custom report item instances in a report
Are there any solid examples/tutorials/demos/books detailing how to dynamically generate custom report item instances in a report based on the amount of rows in a data set? Is there a way to use a for loop to generate the appropriate number of instances of the report item? Additionally I would like to insert these custom report items in a particular order based on a field in the data set. Any help/pointers/articles would be appreciated!
October 10th, 2010 7:46am

The easy way to do this is to use a table data region and to design your report so that the custom report item is in a cell in the details row. This will repeat your custom report item for each row in the data set. I think there are a number of samples which show how to do this with Charts and Guages. Same thing can be done with any data region, including custom report items. Hope this helps, -LukaszGot a bug or feature request? Tell me about it at http://connect.microsoft.com. This posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
October 12th, 2010 5:38pm

Thanks for the response Lukasz! 1) Could you include a link to an example that uses a table to repeat charts/gauges or simply suggest the topic/title I should search for? 2) Also have you come across any report custom item samples/tutorials (that demonstrate how to create a custom report item from scracth) in VB.NET? The only one I've found is the dialog box which is done in C#
October 13th, 2010 8:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics