pdf - 需要使用 VFP 代码在 VFP Windows 中显示 PDF 文件
问题描述
运行我的 Foxpro 9.0 应用程序的用户会生成大量 PDF 文件。我需要在窗口中显示 PDF 文件。我安装了 Google Chrome 并将其设置为 PDF 的默认设置,当在文件资源管理器中双击 PDF 时,它会直接出现在 Chrome 中。我需要使用 Foxpro 代码来实现这一点。有任何想法吗?
解决方案
使用 ShellExecute API 函数,或者 VFP 自带的 _ShellExecute 类,封装了 API 函数。这是一篇关于如何在 VFP 中使用 ShellExecute 的文章:http ://www.ml-consult.co.uk/foxst-26.htm
推荐阅读
- c# - 使用 polly 断路器处理多个服务的正确方法
- python - 在 python 中创建一个两人记忆配对游戏
- json - 使用 jq 从 JSON 属性中查找子字符串
- java - 为什么这个 FetchType.LAZY 被忽略并且所有实体都在查询中被获取?
- javascript - 注销时清除超时的问题
- mysql - 在 select 语句和子查询中使用时,表不存在错误
- mongodb - 使用 jenkins 管道在 docker mongo 实例中运行我的测试
- c - 为什么单链表程序没有按照预期的方式工作
- keras - python中3D矩阵的归一化(LSTM/Keras输入)
- python - 基于Python中的zip函数从列表中的字符串文字中提取数字