首页 > 解决方案 > 需要使用 VFP 代码在 VFP Windows 中显示 PDF 文件

问题描述

运行我的 Foxpro 9.0 应用程序的用户会生成大量 PDF 文件。我需要在窗口中显示 PDF 文件。我安装了 Google Chrome 并将其设置为 PDF 的默认设置,当在文件资源管理器中双击 PDF 时,它会直接出现在 Chrome 中。我需要使用 Foxpro 代码来实现这一点。有任何想法吗?

标签: pdfvisual-foxpro

解决方案


使用 ShellExecute API 函数,或者 VFP 自带的 _ShellExecute 类,封装了 API 函数。这是一篇关于如何在 VFP 中使用 ShellExecute 的文章:http ://www.ml-consult.co.uk/foxst-26.htm


推荐阅读