In this FoxPro Barcode FAQ and tutorial, IDAutomation outlines integrating the Barcode ActiveX Control into Microsoft Visual FoxPro 6 forms and reports.
If a different version of the Barcode ActiveX Control is installed, errors may appear in the existing Visual FoxPro application making use of the ActiveX Control. One of the following suggestions below may resolve this issue:
The best way to fix this problem is to install a previous version of ActiveX control again. Then open the VFP form and remember or write down all property settings for BarCode ActiveX control (right-click on properties window and select the "Non-Default Properties Only" option that will list all properties for which values should be remembered). Remove the ActiveX control from the form and save the configuration. Close the VFP development environment. Install the new version of the ActiveX control. Open the form, put the ActiveX control on the form again and specify property values in exactly the same way. Naturally, this will require recompiling of the VFP application.
The form code may also be modified to enable the ActiveX control in code during run time, as in the VFP barcode example. If the ActiveX control is created and property values assigned at run-time, different versions of ActiveX on the form will work with the same code.
After installing a different ActiveX control version, another program should create a new ActiveX control in general field and set property values accordingly. This will not require recompiling the application - only the data needs to be updated.
In the VFP barcode example, there will be a sample of the report printed using a dynamically prepared ActiveX control in General fields with sample of setting properties for it. It is recommended to use this approach so a different version of the control will not cause problems.
Special thanks to Vlad Grynchyshyn for providing information on using the Barcode ActiveX Control in FoxPro.
| ©Copyright 2018
IDAutomation.com, All Rights Reserved.
Barcode Fonts | Components | Scanners | Support | Contact Us
Over 70% of Fortune 100 companies use IDAutomation's products to automate their businesses.