'Declaration
Public Function NewActionLaunch( _ ByVal FileName As String, _ ByVal DefaultDirectory As String, _ ByVal Parameters As String, _ ByVal Operation As PdfActionLaunchOperation, _ ByVal NewWindow As Boolean _ ) As Integer
public int NewActionLaunch( string FileName, string DefaultDirectory, string Parameters, PdfActionLaunchOperation Operation, bool NewWindow )
public function NewActionLaunch( FileName: String; DefaultDirectory: String; Parameters: String; Operation: PdfActionLaunchOperation; NewWindow: Boolean ): Integer;
public function NewActionLaunch( FileName : String, DefaultDirectory : String, Parameters : String, Operation : PdfActionLaunchOperation, NewWindow : boolean ) : int;
public: int NewActionLaunch( string* FileName, string* DefaultDirectory, string* Parameters, PdfActionLaunchOperation Operation, bool NewWindow )
public: int NewActionLaunch( String^ FileName, String^ DefaultDirectory, String^ Parameters, PdfActionLaunchOperation Operation, bool NewWindow )
Parameters
- FileName
- The file name of the application to be launched or the document to be opened or printed, in standard Windows pathname format.
- DefaultDirectory
- Specifies the default directory (related to the FileName and the Operation parameters) in standard DOS syntax. It is a Windows-specific parameter and it is optional, so if you are not sure, please use an empty string.
- Parameters
- A parameter string to be passed to the application designated by the FileName parameter. It is a Windows-specific parameter and it is optional, so if you are not sure, please use an empty string.
- Operation
- A member of the PdfActionLaunchOperation enumeration. It is a Windows-specific parameter and it is optional, so if you are not sure, please use the value of PdfActionLaunchOperation.ActionLaunchOperationUndefined.
- NewWindow
- Specifies whether to open the related document (see the FileName parameter) in a new window. If the value is set to false, the specified document replaces the current document in the same window. This value is ignored if the specified document is not a PDF document.
Return Value
The unique action identifier of the newly created action of the type Launch. The GdPicturePDF.GetStat method can be subsequently used to determine if this method has been successful.
You can subsequently apply this identifier when creating actions using these methods: GdPicturePDF.SetViewerOpenAction, GdPicturePDF.SetBookmarkAction, GdPicturePDF.SetAnnotationAction or GdPicturePDF.SetFormFieldAction.