有没有一种方法可以打开带有VB功能的pdf文件,从而绕过执行文件(Acrobat.exe)的路径 [英] Is there a way to a open a pdf with a VB function that bypass the path of the executing file (Acrobat.exe)
本文介绍了有没有一种方法可以打开带有VB功能的pdf文件,从而绕过执行文件(Acrobat.exe)的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个MS-Access数据库,供多个用户使用不同的计算机设置使用(某些人使用Windows XP,其他人则使用Adobe Reader 11.0或12.0版的Windows 7,等等).是否有办法通过VB功能(使用Adobe Reader)打开pdf文件(使用表单的命令按钮),从而绕过执行文件(Acrobat.exe)路径的一部分?
I have a MS-Access database that is used by multiple users using different computer settings (Some people use Windows XP, others Windows 7 with Adobe Reader version 11.0 or 12.0, etc.). Is there a way to a open (from a command button in a form) a pdf file (using Adobe Reader) with a VB function that bypass a segment of the path of the executing file (Acrobat.exe)?
目前,我具有此VB功能.
For now, I have this VB function.
Call Shell("""C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe"" ""C:\DOCUMENTS\DOCUM\SPECS\Faune_DEV\SP" & Me![Element_id] & ".pdf", 1)
我想要类似的东西:
Call Shell("""C:\GoAndGetTheAcrobat.exeFile"" ""C:\DOCUMENTS\DOCUM\SPECS\Faune_DEV\SP" & Me![Element_id] & ".pdf", 1)
预先感谢
推荐答案
是的,您可以使用运行文件.
' Use Windows shell to run file.
Sub WinRun()
Dim shell As Object
Set shell = CreateObject("WScript.Shell")
shell.Run "Your-Drive:\Your-Path\Your-File.pdf"
End Sub
这篇关于有没有一种方法可以打开带有VB功能的pdf文件,从而绕过执行文件(Acrobat.exe)的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文