Bar code types
Posted: Thu Mar 21, 2013 7:29 am
Hello
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:
My problem then could be solved by something like this:
With a lot of types of bar codes, there will be a lof code that is difficult to maintain. So my question is: is there any other way to do this?
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
...