Please enable JavaScript to view this site.

TIFF Image Printer

Description

Sets any Run at End 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 End of Job run command is replaced with OnEndJob event. The IPNPrintSession's WaitForJobsCompleted can also be used to wait for the file to be created before moving on to the next file.

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

Syntax

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

                              ActivateWnd, WndState, WaitMode, Prompt)

where expression is an IPNSession object.

Parameters

Boolean Enable

Pass True to enable the Run at End 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:

RunAtEnd enable

varValue:

VT_BOOL

PathToEXE

SectionName:

Run

PropertyName:

RunAtEnd command

varValue:

VT_BSTR, as above

ExeParameters

SectionName:

Run

PropertyName:

RunAtEnd parameters

varValue:

VT_BSTR, as above

WorkingDir

SectionName:

Run

PropertyName:

RunAtEnd directory

varValue:

VT_BSTR, as above

ActivateWnd

SectionName:

Run

PropertyName:

RunAEnd window active

varValue:

VT_BOOL

WndState

SectionName:

Run

PropertyName:

RunAtEnd window

varValue:

VT_BSTR, one of the following:

Normal

Minimized

Maximized

Hidden

WaitMode =

pnRunCommandsWaitModeCompletion

SectionName:

Run

PropertyName:

RunAtEnd wait

varValue:

VT_I4, must be 0

WaitMode =

pnRunCommandsWaitModeWaitWithExit

SectionName:

Run

PropertyName:

RunAtEnd wait

varValue:

VT_I4, must be 1

WaitMode =

pnRunCommandsWaitModeDoNotWait

SectionName:

Run

PropertyName:

RunAtEnd wait

varValue:

VT_I4, must be 2

WaitMode =

pnRunCommandsWaitModePromptToContinue

SectionName:

Run

PropertyName:

RunAtEnd wait

varValue:

VT_I4, must be 3

Prompt

SectionName:

Run

PropertyName:

RunAtEnd prompt

varValue:

VT_BSTR, as above

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

See Also: OnEndJob SetRunAtStartCommand ClearRunAtStartCommand ClearRunAtEndCommand SetProperty pnRunCommandWindowState pnRunCommandsWaitMode