Barcode with PageNumber in PageFooter

2 posts, 0 answers
  1. Beau Button
    Beau Button avatar
    3 posts
    Member since:
    Nov 2007

    Posted 18 Dec 2009 Link to this post

    I am trying to render a barcode in the pagefooter of a report. The barcode is a concatenation of an ID (for the document) and the current page number: =Fields.DeedTrackingNumber + "-" + PageNumber. When the report is rendered however, the PageNumber is always one. I've confirmed that the PageNumber is working by copying the same value from the BarCode control to a TextBox control, it renders fine.

    Is this a known issue? Am I doing something wrong?

    Beau Button
    Archon Information Systems
  2. Steve
    Steve avatar
    10941 posts

    Posted 19 Dec 2009 Link to this post

    Hello Beau,

    Thank you for bringing this to our attention. Indeed the Barcode item does not handle such case at the moment and we would consider addressing this for a subsequent version of the product. For the time being please use the following workaround:

    private void barcode1_ItemDataBinding(object sender, EventArgs e)
               Telerik.Reporting.Processing.Barcode bcd = (Telerik.Reporting.Processing.Barcode)sender;
               bcd.Value = ((Telerik.Reporting.Barcode)bcd.ItemDefinition).Value;

    With the above code, the Value of the Barcode would be evaluated for each page and would give you the proper result.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top