User`s guide

Creating Reports Easily Using ActiveX Chapter 6
VEE User’s Guide 275
9 Add three more Formula objects and one If/Then/Else object,
configure, and connect them as shown in
Figure 162.
Figure 162 The Complete Program for Report in MS Word
The entries in the additional objects are as follows:
Table 3 0 Additional Objects in Figure 17
Object Description
App.ActivePrinter Requests the default printer in a string including its port.
strLen(str) != 0 Makes sure that ActivePrinter has located a configured
printer (if the string on the input is not null, then...), then
outputs a 1
(=TRUE) on the Then pin, which pings the
Formula object containing the PrintOut call.
DocPrintOut(0) Prints the document.
App.Quit(0) Closes the MS Word Application