I have a question regarding the bar code component. Is it possible to set the bar code type according to the value of some variable in the dictionary?
For example, if the value of the variable is "x", then the bar code type should be EAN13, and if the value is "y", then the code should have some other type.
I know it is possible to set the bar code type in the Begin Render event of the report, for example like this:
Code: Select all
bc.BarCodeType = new Stimulsoft.Report.BarCodes.StiEAN13BarCodeType();
Code: Select all
if (someVariable == "x")
{
bc.BarCodeType = new Stimulsoft.Report.BarCodes.StiEAN13BarCodeType();
}
else
...