Ets_PDF_Viewer_Launch()
Note: Requires OPNET Development Kit
Abstract
Opens the specified file in a PDF viewer.
Syntax
Ets_PDF_Viewer_Launch (name)
| Argument | Type | Description |
|---|---|---|
name |
const char * |
Name of the PDF file to open; see Details for format |
Return Value
EtsT_Compcode
EtsT_Compcode_Success if the file and PDF viewer are found and launched; EtsT_Compcode_Failure otherwise.
Header
ets_api_program_launch.h
Details
This function displays an Acrobat PDF file in the viewer specified by the user’s vudoc_prog preference. The name argument can specify the PDF file in any of the following ways:
- Name only—file name with no path information or
.pdfextension. The specified PDF file must be located in one of the following directories:doc/<product>/helpdoc/<product>/help/KPdoc/<product>/forms- a directory listed in the
mod_dirspreference
- Absolute path—file name with absolute path and
.pdfextension. Example:c:\users\op_models\my_file.pdf - Relative path—file name with relative path and
.pdfextension.
This path must be relative to the <install_dir>\<release> directory. <install_dir> is the full path to the directory where Riverbed analysis software is installed; <release> is the release-specific subdirectory within <install_dir>. For example, <install_dir>\<release> might translate to c:\Riverbed\18.6 or /opt/riverbed/18.6. A relative path can begin with any of the following strings:
Table 8
| Windows | Linux |
|---|---|
.\<directory> |
./<directory> |
\<directory> |
/<directory> |
<directory> |
<directory> |
Example: .\doc\wmdguru\my_file.pdf