'Declaration
Public Function GetActionLaunchDestination( _ ByVal ActionID As Integer, _ ByRef FileName As String, _ ByRef DefaultDirectory As String, _ ByRef Parameters As String, _ ByRef Operation As PdfActionLaunchOperation, _ ByRef NewWindow As Boolean _ ) As GdPictureStatus
public GdPictureStatus GetActionLaunchDestination( int ActionID, ref string FileName, ref string DefaultDirectory, ref string Parameters, ref PdfActionLaunchOperation Operation, ref bool NewWindow )
public function GetActionLaunchDestination( ActionID: Integer; var FileName: String; var DefaultDirectory: String; var Parameters: String; var Operation: PdfActionLaunchOperation; var NewWindow: Boolean ): GdPictureStatus;
public function GetActionLaunchDestination( ActionID : int, FileName : String, DefaultDirectory : String, Parameters : String, Operation : PdfActionLaunchOperation, NewWindow : boolean ) : GdPictureStatus;
public: GdPictureStatus GetActionLaunchDestination( int ActionID, ref string* FileName, ref string* DefaultDirectory, ref string* Parameters, ref PdfActionLaunchOperation Operation, ref bool NewWindow )
public: GdPictureStatus GetActionLaunchDestination( int ActionID, String^% FileName, String^% DefaultDirectory, String^% Parameters, PdfActionLaunchOperation% Operation, bool% NewWindow )
Parameters
- ActionID
- A unique action identifier specifying a required action object. You can obtain this identifier using these methods: GdPicturePDF.GetViewerOpenActionID, GdPicturePDF.GetBookmarkActionID, GdPicturePDF.GetFormFieldActionID, GdPicturePDF.GetAnnotationActionID or GdPicturePDF.NewActionLaunch.
Please ensure that the type of the action object specified by this identifier is exactly the PdfActionType.ActionTypeLaunch, otherwise the method will fail. You can check the type of the required action object using the GdPicturePDF.GetActionType method as it is shown in the example below.
- FileName
- Output parameter. The file name of the application to be launched or the document to be opened or printed, in standard Windows pathname format.
- DefaultDirectory
- Output parameter. The default directory (related to the FileName and the Operation parameters) in standard DOS syntax. It is a Windows-specific parameter, so if it is not defined in the PDF document, the result is an empty string.
- Parameters
- Output parameter. A parameter string to be passed to the application designated by the FileName parameter. It is a Windows-specific parameter, so if it is not defined in the PDF document, the result is an empty string.
- Operation
- Output parameter. A member of the PdfActionLaunchOperation enumeration. It is a Windows-specific parameter, so if it is not defined in the PDF document, the result is PdfActionLaunchOperation.ActionLaunchOperationUndefined.
- NewWindow
- Output parameter. Specifies whether to open the related document (see the FileName parameter) in a new window. If the returned value is 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
If the action object specified by the action identifier is not of the type PdfActionType.ActionTypeLaunch, the reason for the method's failure is GdPictureStatus.InvalidParameter.