FDF doesn't open in Acrobat
My VB6 application has a reference to FdfAcX 1.0 Type Library. The FDF is created with:
Dim FdfAcX As FDFACXLib.FdfApp
Dim objFdf As FDFACXLib.FdfDoc
Set FdfAcX = CreateObject("FdfApp.FdfApp")
Set objFdf = FdfAcX.FDFCreate
The application code then supplies values for each field in the PDF, for example, as follows:
objFdf.FDFSetValue "Station Name", lsCompanyName, False
objFdf.FDFSetValue "Station Number", lsCompanyStationNumber, False
The final code is as follows:
' Set the PDF to open
objFdf.FDFSetFile pdfPath & "MV-436A.pdf"
' Save the file
objFdf.FDFSaveToFile fdfPath & "MV-436A.fdf"
' Close the file
objFdf.FDFClose
pdfPath and fdfPath are identical in this test. They are:
C:\\GitHub\\MVIRS\\Application\\
When the form is fired with:
ShellExecute vbNull, "open", pdfPath & "MV-436A.fdf", vbNull, vbNull, WIN_NORMAL
...nothing happens.
Can anyone shed light on this problem? Should I convert to XFDF?
Thanks, Pete
