Returns the number of print jobs in the background printing job queue.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_BKGRND_PRINTING_COUNT NbPrintJobs ReturnCode |
|||||
Parameters |
|||||
NbPrintJobs |
NUM_BIN_4 type (output parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Returns the number of files which have to be saved in the background.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_BKGRND_SAVING_COUNT NbBackups ReturnCode |
|||||
Parameters |
|||||
NbBackups |
NUM_BIN_4 type (output parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Connects the Visual Adelia application to the Microsoft Word application.
If Microsoft Word is not already running on the workstation, it will be started but remain unseen.
If the Visual Adelia application is already connected, nothing will be done.
The WordStarted parameter will be set to *TRUE if Microsoft Word is already running, otherwise it will be set to *FALSE. This parameter can be used to close (or leave running) the Microsoft Word application when the Visual Adelia application is closed.
The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_CONNECT WordStarted ReturnCode |
|||||
Parameters |
|||||
WordStarted |
BOOL type (output parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Connects the Visual Adelia application to the Microsoft Word application.
If the NewWordApp parameter is set to *TRUE, a new Microsoft Word process is run and the Visual Adelia application connects to this new process.
If the NewWordApp parameter is set to *FALSE, the Visual Adelia application connects either to the Microsoft Word application running on the workstation, if there is one, or else to a new Microsoft Word process.
If Microsoft Word is not already running on the workstation, it will be started but remain unseen.
The WordStarted parameter will be set to *TRUE if the Microsoft Word process to which the Visual Adelia application connects is already running, otherwise it will be set to *FALSE. This parameter can be used to close (or leave running) the Microsoft Word application when the Visual Adelia application is closed.
If the Visual Adelia application is already connected, no action is taken, and the WordStarted parameter is set to *TRUE.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_CONNECT_EX NewWordApp WordStarted ReturnCode |
|||||
Parameters |
|||||
NewWordApp |
BOOL type (input parameter) |
||||
WordStarted |
BOOL type (output parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Disconnects the Visual Adelia application from the Microsoft Word application.
If Microsoft Word is only used via method calls from the Visual Adelia application, it will be stopped.
The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_DISCONNECT ReturnCode |
|||||
Parameters |
|||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Instructs the Microsoft Word application whether or not to display warning or error messages in response to certain method calls.
The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.
Syntax | |||||||
CALL_METHOD NameWordClientObject APP_DISPLAY_ALERTS AlertType ReturnCode |
|||||||
Parameters |
|||||||
AlertType |
NUM_BIN_4 type (input parameter) Possible values:
|
||||||
ReturnCode |
NUM_BIN_ type 4 (output parameter) Possible values:
|
Note: This method, used with the parameter _WRD_ALERTS_ALL, is useful during the fine tuning phase, in order to obtain a clear description of the error.
Specifies whether or not Microsoft Word can update its display, depending on the value of the ScreenUpdatingEnabled parameter.
Syntax | |
CALL_METHOD NameWordClientObject APP_ENABLE_SCREEN_UPDATING ScreenUpdatingEnabled ReturnCode |
|
Parameters |
|
ScreenUpdatingEnabled |
BOOL type (input parameter) |
ReturnCode |
NUM_BIN_4 type (output parameter) |
Note: This method can be useful if you want to freeze the display in order to save time while running a series of methods.
Runs a macro in the active document. This macro can be defined in the document or in the document model.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_RUN_MACRO MacroName ReturnCode |
|||||
Parameters |
|||||
MacroName |
ALPHA(250) type (input parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Retrieves the active printer that is used for printing a document.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_GET_ACTIVE_PRINTER PrinterName ReturnCode |
|||||
Parameters |
|||||
PrinterName |
ALPHA(100) type (output parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Retrieves the value of an option defined in the Microsoft Word application. The value appears in the dialog box opened via the "Options" option from the "Tools" menu.
Option |
option, the value of which is to be retrieved. |
Value |
value of the option. |
Syntax | ||||||||||
CALL_METHOD NameWordClientObject APP_GET_OPTION Option Value ReturnCode |
||||||||||
Parameters |
||||||||||
Option |
NUM_BIN_4 type (input parameter) Possible values:
|
|||||||||
Value |
The type depends on the option (output parameter) |
|||||||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Closes the Microsoft Word application, possibly saving any unsaved documents.
ManageChanges |
action to be performed for any unsaved modifications, |
SaveFormat |
indicates the format used to save a document not originally in the Microsoft Word format, |
The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.
Syntax | |||||||
CALL_METHOD NameWordClientObject APP_QUIT ManageChanges SaveFormat ReturnCode |
|||||||
Parameters |
|||||||
ManageChanges |
NUM_BIN_4 type (input parameter) Possible values:
|
||||||
SaveFormat |
NUM_BIN_4 type (input parameter) Possible values:
|
||||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Sets the active printer that is used for printing a document.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_SET_ACTIVE_PRINTER PrinterName ReturnCode |
|||||
Parameters |
|||||
PrinterName |
ALPHA(100) type (input parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
Sets an option in the Microsoft Word application. This corresponds to a choice made in the dialog box displayed via the "Options" option from the "Tools" menu.
Option |
option, the value of which is to be set. |
Value |
new value of the option. |
Syntax | ||||||||||
CALL_METHOD NameWordClientObject APP_SET_OPTION Option Value ReturnCode |
||||||||||
Parameters |
||||||||||
Option |
NUM_BIN_4 type (input parameter) Possible values:
|
|||||||||
Value |
The type depends on the option (input parameter) Possible values:
|
Sets the visibility of the Microsoft Word application according to the value of the Visibility parameter.
The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case. Microsoft Word does not become the active application when it is made visible.
Syntax | |||||
CALL_METHOD NameWordClientObject APP_SET_VISIBLE Visibility ReturnCode |
|||||
Parameters |
|||||
Visibility |
BOOL type (input parameter) |
||||
ReturnCode |
NUM_BIN_4 type (output parameter) Possible values:
|
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page: