guides:programming:programmers_reference_manual:set_vsprinter

SET_VSPRINTER Function

Returns, and optionally overrides, the currently selected print engine (OIPI.Net (VSPRINTER2) or OIPI "classic" (VSPRINTER1)).

The override print processor (if any) will take effect immediately, regardless of the "cache" setting of the CFG_OIPI record value in the SYSENV table.

The override remains in effect until the user logs out, or SET_VSPRINTER is invoked again, or REFRESH_VSPRINTER is called.

currvalue = SET_VSPRINTER(desired_print_engine, debug_flag, topmost_flag)

The SET_VSPRINTER function has the following parameters.

ParameterDescription
desired_print_engineThe print engine that should "override" any previous selection. Values should be

? - Return the currently-selected print engine without changing it
1 or VSPRINTER1 - Select VSPRINTER1 (OIPI "classic")
2 or VSPRINTER2 - Select VSPRINTER2 (OIPI.Net)
"" or NONE - Remove any override
debug_flagIf set to "1", turns on OIPI debugging; if set to "0", turns off OIPI debugging. Specify null ("") to leave this value unchanged
topmost_flagIf set to "1", instructs OIPI to remain the topmost window; if set to "0", removes the "topmost" flag. Specify null ("") to leave this value unchanged

Returns the selected print processor in effect before any override parameter is applied.

* Override the current print processor, whatever it is, to use VSPRINTER1 (OIPI "classic")
prev_value = SET_VSPRINTER("1")
* ... use VSPRINTER1 ...
* Remove the override
dummy_value = SET_PRINTER("")
  • guides/programming/programmers_reference_manual/set_vsprinter.txt
  • Last modified: 2024/10/14 18:18
  • by 127.0.0.1