I need to intercept the value of the rendered barcode control - the first one if there are more than one.
I tried to access the component after the report has been rendered, but the value I get is always the default designer value "1234567890123"
my code looks like this:
Code: Select all
var rep = new StiReport();
rep.Load(...);
Rep.Render();
var collection = rep.GetComponents();
foreach (var c in collection) {
if (c is Stimulsoft.Report.BarCodes.StiBarCode) {
var bc = (c as Stimulsoft.Report.BarCodes.StiBarCode);
return bc.Code.Value;
// return bc.GetBarCodeString();
}
}
any help appreciated