Search code examples
vb.netdevexpressxtrareport

Put each result of a query in a new page


I have a query that give me this results:

    Barcode
   ---------
    512364
    012474
    111457

And I need to print each result in a new page.

enter image description here


Solution

  • I solve my problem at this way:

    It is not necessary to create a separate XRBarcode control manually in code for each data row. To accomplish this task, bind your report to your SQL query, put the XRBarcode control into the report's Detail band, and bind the XRBarcode.Text property to the "Barcode" field. After that, set the Detail band's PageBreak property to the 'AfterBand' value so each new BarCode would start on a new page.