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.

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 .pdf extension. The specified PDF file must be located in one of the following directories:
    • doc/<product>/help
    • doc/<product>/help/KP
    • doc/<product>/forms
    • a directory listed in the mod_dirs preference
  • Absolute path—file name with absolute path and .pdf extension. Example: c:\users\op_models\my_file.pdf
  • Relative path—file name with relative path and .pdf extension.

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

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com