DeltaV OPC Data Access Server functional overview > Barcode tutorial

Set up a new project

Creating an OPC client application in Visual Basic means creating an OLE Automation client. Using OLE Automation, you can borrow the functionality of other applications by controlling their objects from within your Visual Basic application. If the object is an OLE Automation object, you can use its properties and methods in code.

To start this application, open the VB project, Barcode, and add references to the OPCDisp library. This gives you project access to all of the DeltaV OPC Data Access Server interfaces and their properties and methods. Use the References dialog to make another application's objects available in your code. This dialog allows you to set a reference to the other application's object library.

Also included with the project is a TrueType bar code font called 3of9.ttf. To load this font, go to Control Panel, Fonts. Select Install New Font from the File menu. Select the file, \DeltaV\samples\Opc\Start\3of9.ttf, and then click OK.