Search code examples
datasetdevexpressxtrareport

Devexpress XtraReport how to print more than one label for each DataSource row based on count field


I'm printing labels for an inventory system using an XtraReport bound to a PartsInventory table. Each row of the bound table contains a description of the part along with a count of the number of parts in inventory. Currently using the XtraReport component, I am able to print one label for each row in the DataTable. However, if I would like to print a label to stick on each physical part then a single row should print "count" number of identical labels. "count" is a field in each row signifying how many of each part are on hand.

Is there a best way to do this?

Thank you.


Solution

  • Thanks for the responses. I gave up on XtraReport and just designed the label on a User Control and then drawstring() to a PrintDocument for each label. If I had stuck with XtraReport I would have probably just inherited from DataTable and write a custom fill() method to populate with one row for each actual label. If anyone is interested in the solution I came up with to print lables just let me know.