Why Do I Get an Error When I Enable a Bar Code Symbology within My VB or C# Code?

Article ID: 45233053

Question

Why Do I Get an Error When I Enable a Bar Code Symbology within My VB or C# Code?

Facts

SMDK 0.1 0.1 0.1

Answer

You may get an error when enabling a bar code symbology within your VB or C# code.  This may happen despite being able to access all of the Bar Code Reader’s Parameters after you initialize it.  You cannot set any of the parameters until you enable the Reader.
Me.MyReader.Actions.Enable()
After this line of code you can access the Decoders parameter of the Reader object and enable or disable any symbology.