PDF 形式のフォームのいくつかのフィールドにプログラムで入力したいと考えています。
私はこのコードを試しました:
Set objAdobe = CreateObject("AcrobatReader.Application")
objAdobe.Visible = True
「ActiceX コンポーネントはオブジェクトを作成できません」というエラーが表示されます。
PDF 形式のフォームのいくつかのフィールドにプログラムで入力したいと考えています。
私はこのコードを試しました:
Set objAdobe = CreateObject("AcrobatReader.Application")
objAdobe.Visible = True
「ActiceX コンポーネントはオブジェクトを作成できません」というエラーが表示されます。
The OLE automation interface is only provided by Adobe Acrobat, not Adobe Reader.
If you have Adobe Acrobat installed, you can launch it from VBScript like this:
Set oAcrobat = CreateObject("AcroExch.App")
oAcrobat.Show
For a complete reference of Acrobat's automation API, see the "OLE Automation" section of this document.
Try the windows API ShellExecute function. Not sure of the VB syntax (this works in FoxPro)...
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
cFileName = "d:\MyDocs\myfile.pdf"
cAction = "open"
ShellExecute(0,cAction,cFileName,"","",1)
...but the user will have to fill in the fields by hand.