Generic path for Adobe Reader for form FDF file
From: Cosmic (Cosmic_at_discussions.microsoft.com)
Date: 09/10/04
- Next message: Dirk Goldgar: "Re: Newbiew question...PLEASE HELP"
- Previous message: Tom Braun: "Multi-column Combo Boxes"
- Next in thread: Douglas J. Steele: "Re: Generic path for Adobe Reader for form FDF file"
- Reply: Douglas J. Steele: "Re: Generic path for Adobe Reader for form FDF file"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Sep 2004 12:21:05 -0700
I'm using Adobe fdf forms to populate a pdf file with information from my
database. I currently got the software to work if I hard code the Adobe path
and pdf file path, but I would like the program to handle the paths in a more
generic fashion.
How do I use the default Adobe Reader that the user has installed?
How do I use a generic path depending on where the database is installed on
the user machine?
Here is part of the code:
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\MyDatabase\FDFforms\MyFDF.fdf", True)
a.WriteLine ("%FDF-1.2")
'FUTURE Location of PDF file is hardcoded, should make it more dynamic
later!!!
a.WriteLine ("1 0 obj<</FDF << /F(C:/MyDatabase/OtherForms/MyPDF.pdf)")
'More fdf stuff here...
a.WriteLine ("endobj")
a.WriteLine ("trailer")
a.WriteLine ("<</Root 1 0 R>>")
a.WriteLine ("%%EOF")
a.Close
'Call Acrobat reader with the new file name
'NOTE: Need a generic location for Acrobat since it may not be in this
location.
stAppName = "C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe
c:\MyDatabase\FDFforms\MyFDF.fdf"
Call Shell(stAppName, 1) 'This only works with the full path to the
application
BTW: I have gotten EXCELLENT responses from previous questions. I really
appreicate the support!!!
- Next message: Dirk Goldgar: "Re: Newbiew question...PLEASE HELP"
- Previous message: Tom Braun: "Multi-column Combo Boxes"
- Next in thread: Douglas J. Steele: "Re: Generic path for Adobe Reader for form FDF file"
- Reply: Douglas J. Steele: "Re: Generic path for Adobe Reader for form FDF file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|