Error processing SSI file
LEADTOOLS Leadtools.Documents.UI (Leadtools.Documents.UI assembly)

Show in webframe

PreRun Method






Owner document viewer.
The value to be used with the command.
Inform the document viewer that this command is about to run with the specified value.
Syntax
'Declaration
 
Public Function PreRun( _
   ByVal documentViewer As DocumentViewer, _
   ByVal value As Object _
) As Boolean
'Usage
 
Dim instance As DocumentViewerCommand
Dim documentViewer As DocumentViewer
Dim value As Object
Dim value As Boolean
 
value = instance.PreRun(documentViewer, value)

Parameters

documentViewer
Owner document viewer.
value
The value to be used with the command.

Return Value

true to continue running the command; otherwise, false to abort.
Remarks

This method informs the document viewer that this command is about to run by creating a new DocumentViewerOperationEventArgs object with DocumentViewerOperation.RunCommand and the command object in Data1, value in Data2 and IsPostOperation set to false then firing the Operation event.

This informs anyone listening to the event the command is about to run which can be important if the command is slow. For example, to create a wait dialog in the user interface in this case.

The listener can also abort the execution of this command by setting the value of Abort to true. Which will result in this method returning false to the document viewer and the running of this command is canceled.

Requirements

Target Platforms

See Also

Reference

DocumentViewerCommand Class
DocumentViewerCommand Members

Error processing SSI file
Leadtools.Documents.UI requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features