This is a migrated thread and some comments may be shown as answers.

Barcode with PageNumber in PageFooter

1 Answer 16 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Beau Button
Top achievements
Rank 1
Beau Button asked on 18 Dec 2009, 11:18 PM
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?

Thanks, 
Beau Button
Archon Information Systems

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Dec 2009, 09:57 AM
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,
Steve
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.
Tags
General Discussions
Asked by
Beau Button
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or