Ets_PDF_Viewer_Launch()

注意: 需要 OPNET Development Kit

摘要

在 PDF 查看器中打开指定文件。

语法

Ets_PDF_Viewer_Launch (name)
参数 类型 说明
name const char * 要打开的 PDF 文件的名称;格式见详情

返回值

EtsT_Compcode

如果找到并启动了该文件和 PDF 查看器,返回 EtsT_Compcode_Success;否则返回 EtsT_Compcode_Failure。

头文件

ets_api_program_launch.h

详情

此函数在用户 vudoc_prog 偏好设置所指定的查看器中显示 Acrobat PDF 文件。name 参数可以用下列任一方式指定 PDF 文件:

  • 仅名称——不含路径信息和 .pdf 扩展名的文件名。指定的 PDF 文件必须位于以下目录之一:
    • doc/<product>/help
    • doc/<product>/help/KP
    • doc/<product>/forms
    • mod_dirs 偏好设置中列出的某个目录
  • 绝对路径——带绝对路径和 .pdf 扩展名的文件名。 示例:c:\users\op_models\my_file.pdf
  • 相对路径——带相对路径和 .pdf 扩展名的文件名。

该路径必须相对于 <install_dir>\<release> 目录。<install_dir> 是 Riverbed 分析软件安装目录的完整路径;<release> 是 <install_dir> 内与版本相关的子目录。例如,<install_dir>\<release> 可能对应 c:\Riverbed\18.6 或 /opt/riverbed/18.6。相对路径可以以下列任一字符串开头:

表 8

Windows Linux
.\<directory> ./<directory>
\<directory> /<directory>
<directory> <directory>

示例:.\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