Please enable JavaScript to view this site.

TIFF Image Printer

Description

Sets any Run at Start of Job command options in the IPNSession object.

The Run commands are included for backwards compatibility with previous applications using this method, but new applications should use the IPNSession events to perform custom actions at the appropriate stage. The Start of Job run command is replaced with the OnStartJob event.

To set a single Run at Start of Job command option use the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.

Syntax

expression.SetRunAtStartCommand(Enable, PathToEXE, ExeParameters, WorkingDir,

                              ActivateWnd, WndState, WaitMode, Prompt)

where expression is an IPNSession object.

Parameters

Boolean Enable

Pass True to enable the Run at Start of Job command.

String PathToEXE

The full path to the command you want to launch. A command is limited to 128 characters in length, and can be an executable, a file or a DLL.

String ExeParameters

Any parameters you need to send to your application. A list of parameters is limited to 255 characters.

String WorkingDir

The default working directory for your application.

Boolean ActivateWnd

Pass True to activate the window in which your application runs.

pnRunCommandWindowState WndState

A pnRunCommandWindowState constant for the window state of the application you are running.

pnRunCommandsWaitMode WaitMode

A pnRunCommandsWaitMode constant for the wait mode on the command.

String Prompt

A string to prompt if the WaitMode is pnRunCommandsWaitModePromptToContinue. Pass an empty string for the other wait modes.

Remarks

Use the following to set these options using SetProperty:

Method Parameter

SetProperty Parameters

Enable

SectionName:

Run

PropertyName:

RunAtStart enable

varValue:

VT_BOOL

PathToEXE

SectionName:

Run

PropertyName:

RunAtStart command

varValue:

VT_BSTR, as above

ExeParameters

SectionName:

Run

PropertyName:

RunAtStart parameters

varValue:

VT_BSTR, as above

WorkingDir

SectionName:

Run

PropertyName:

RunAtStart directory

varValue:

VT_BSTR, as above

ActivateWnd

SectionName:

Run

PropertyName:

RunAtStart window active

varValue:

VT_BOOL

WndState

SectionName:

Run

PropertyName:

RunAtStart window

varValue:

VT_BSTR, one of the following:

Normal

Minimized

Maximized

Hidden

WaitMode =

pnRunCommandsWaitModeCompletion

SectionName:

Run

PropertyName:

RunAtStart wait

varValue:

VT_I4, must be 0

WaitMode =

pnRunCommandsWaitModeWaitWithExit

SectionName:

Run

PropertyName:

RunAtStart wait

varValue:

VT_I4, must be 1

WaitMode =

pnRunCommandsWaitModeDoNotWait

SectionName:

Run

PropertyName:

RunAtStart wait

varValue:

VT_I4, must be 2

WaitMode =

pnRunCommandsWaitModePromptToContinue

SectionName:

Run

PropertyName:

RunAtStart wait

varValue:

VT_I4, must be 3

Prompt

SectionName:

Run

PropertyName:

RunAtStart prompt

varValue:

VT_BSTR, as above

Supported Printers: TIFF Image Printer, PDF Image Printer, Raster Image Printer

See Also: OnStartJob SetRunAtEndCommand ClearRunAtStartCommand ClearRunAtEndCommand SetProperty pnRunCommandWindowState pnRunCommandsWaitMode