S
Steve from Maine
I am developing a DB app in Access 2007 that will maintain parts for an
electrical companies parts/items and print a catalog/report. Everything is
fine however I would like to use the “Included†Adobe/Acrobat/PDF dll
objects(.tlb?) that now come with Access 2007.
I was trying to use CreateObject(“Adobe.applicationâ€) but it doesn’t seem to
like it. As well I am having a lot of trouble finding sample code showing me
the proper way to address the object.
What I want to do:
My catalog has 3 Access reports(2 separate index reports and then 1 report
for the items(repeating report by section) + PDF images for each section.
(After printing the two index reports, I have written a routine to print 1
sections parts followed by an image or images(pdf) that I store the
path+filename to in the database. Then I loop back and do the next section.
This all works fine but even if I make adobePDF as my default printer. It
still makes separate files.(As well, I don’t know how to print out the PDF
files from VBA). I do know how to createobject(Word.Application) and print
word docs and would think I could do this with Adobe/PDF but likeI said
above, it doesn’t seem to like CreateObject(“Adobe.Applicationâ€) or
“createobject(“PDF.Application) or createObject(“AcroExch.Appâ€).
***** What I really would like to do *********
I would really like to open up 1 pdf file, write/append the two index
reports to it, leave it open and write/Append each section report + images to
it so I end up with one PDF file. (1 big parts catalog PDF file)
Don’t see any Merge actions with the CreateObject(“AcroExch.Appâ€) method.
I am usually pretty good about figuring out this stuff on my own but I can
find what the methods and properties are for this “Adobe†object that
supposedly comes with 2007.
Can you help?
Thanks
Steve from Maine
electrical companies parts/items and print a catalog/report. Everything is
fine however I would like to use the “Included†Adobe/Acrobat/PDF dll
objects(.tlb?) that now come with Access 2007.
I was trying to use CreateObject(“Adobe.applicationâ€) but it doesn’t seem to
like it. As well I am having a lot of trouble finding sample code showing me
the proper way to address the object.
What I want to do:
My catalog has 3 Access reports(2 separate index reports and then 1 report
for the items(repeating report by section) + PDF images for each section.
(After printing the two index reports, I have written a routine to print 1
sections parts followed by an image or images(pdf) that I store the
path+filename to in the database. Then I loop back and do the next section.
This all works fine but even if I make adobePDF as my default printer. It
still makes separate files.(As well, I don’t know how to print out the PDF
files from VBA). I do know how to createobject(Word.Application) and print
word docs and would think I could do this with Adobe/PDF but likeI said
above, it doesn’t seem to like CreateObject(“Adobe.Applicationâ€) or
“createobject(“PDF.Application) or createObject(“AcroExch.Appâ€).
***** What I really would like to do *********
I would really like to open up 1 pdf file, write/append the two index
reports to it, leave it open and write/Append each section report + images to
it so I end up with one PDF file. (1 big parts catalog PDF file)
Don’t see any Merge actions with the CreateObject(“AcroExch.Appâ€) method.
I am usually pretty good about figuring out this stuff on my own but I can
find what the methods and properties are for this “Adobe†object that
supposedly comes with 2007.
Can you help?
Thanks
Steve from Maine