270 Chapter 6
Creating Reports Easily Using ActiveX
Using MS Word for Agilent VEE Reports
"\\panel.bmp" in the Formula input field. (Use the escape sequence
\\ to specify the ASCII character \.) Delete input terminal A.
If you installed in
c:\Program Files\Agilent\ for example, you
would then generate the following text string on the
Result output pin:
C:\Program Files\Agilent\VEE Pro 6.0\panel.bmp.
5. Create another
Formula object and enter
savePanelImage("Graph", FileName, 256). Rename the input
terminal to
FileName.
This saves the screen dump from the
UserFunction Graph in the
panel.bmp file in the installation directory at a color depth per pixel of
256.
6. Create another
Formula object and enter the statement:
Set App = CreateObject("Word.Application")
This launches MS Word and assigns the object variable app to refer to
this instance of the application. Delete input terminal
A. Connect Call
Graph
, ImageFileName, and savePanelImage as shown in Figure
6-15.
Figure 6-15. Beginning of Lab 6-3 Program