Tech Notes

Viewing OLE Documents Using the ProFicient Toolbar

Viewing OLE (object linking and embedding) documents can be done using the ProFicient toolbar. Any object that can be viewed in a Windows Operating System environment can be considered an OLE object. For example, an OLE object might be a bitmap image (.bmp), a text document (.txt), a flowchart (.flw) or an MS Word (.doc) document. OLE documents can be viewed either statically or dynamically using the ProFicient toolbar.

Figure 1: A part drawing bitmap image to be viewed using the toolbar


Static Viewing Of OLE Documents

Say that you want to view the bitmap image in Figure 1 by clicking on a toolbar button. The project has a single data entry configuration and no re-selects of either part, process or test. Click Preference>Toolbar Buttons. You will see the Configure Toolbar window as shown below in Figure 2.

Figure 2

While in the Configure Toolbar window, Click the B. Browse... button and find the OLE document of interest. Optionally, you can type the path of the document in the J. Command Line dialog box. Last, type the button title in the H. Text dialog box.
Click OK.

Now when you click the Picture button on the toolbar, the Windows Photo Viewer program shows the bitmap image of the document on the ProFicient screen.

Figure 3

To prevent editing of an OLE document, have your Information Systems professional specify the file or its directory as "Read Only."

Dynamic Viewing of OLE Documents

Many different OLE documents can be viewed dynamically in ProFicient. To enable dynamic viewing, the project must specify re-selects in part, process or test. For example, the project discussed above might have been created to manage several different part numbers. If so, the data entry configuration must allow the re-select of part by the project's user.

ProFicient can pass the current part name in the active data entry configuration to the toolbar. This allows the viewing of OLE documents specific to the parts being managed in the project. However, the OLE file names must be identical to the part name in the data entry configuration. To pass part name, substitute %depart(x).bmp for the bitmap file name on the command line within the Configure Toolbar window (below). The value "x" represents the data entry configuration of interest. ProFicient handles up to 9 data entry configurations per project.

Figure 4

When operators re-select part and click the Picture toolbar button shown in Figure 3 above, the OLE document with the identical re-selected part name will appear without any additional selections or actions on the part of the operator.

The key to dynamically viewing OLE documents using the toolbar is that the OLE file names must be identical to the part, process or test names in the data entry configuration.

Additionally, the toolbar can be configured to dynamically view OLE documents based on process, test, part group, process group or test group. OLE-specific toolbar commands can be found in Table 1 below.

Table 1

Need help?
​For further information contact
Toll Free: 1.800.772.7978​

Start Solving Plant Floor Problems Now

Make meaningful change for your manufacturing organization.
Take the Next Step