Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 968
  • Last Modified:

Automatic (VBA) creation of Adobe PDF (v.6) from MS Access (2003) report.

I have pursued and tried to understand the various “fragmented” solutions, advice and work a-rounds currently on file, but none provide a clear “Step by Step” coding solution for my problem which is:

A solution using MS Access (2003) Forms, Reports and VBA code etc. that will enable a User to open a "Print report" form dialog box with a “Print, save and email” option that will Automatically, background print the selected report directly to Adobe Acrobat Writer .pdf (V.6) and which will automatically (without any further user input) create (if new) and or save the pdf document using information (Drive Name, Path, Folder Name and  File Name) pulled from a  reference table with the current MS access database.

0
7dud
Asked:
7dud
  • 6
  • 4
  • 3
  • +2
1 Solution
 
jjafferrCommented:
Try my example on
www.almosawe.ae/jaffer/pdf-Report.zip
Which includes everything you will require.

jaffer
0
 
7dudAuthor Commented:
Thanks for the quick response.

Is there any way to do it without using "Ghostscript" and "Makepdf"? I would prefer to solve the problem using only MS Access 2003 and Adobe Acrobat Reader V6.

Also the finished product will be part of a MS app that we will be run on 10-20 networked machines and the extra time and administration overhead to install "Ghostscript" and "Makepdf" etc. on all computers, isn't desirable.

Jeromy
0
 
jjafferrCommented:
Jeromy

From what I read, there is no direct way with Adobe Acrobat Reader, thats when I found this solution and modified it and made to the public.

I think the only way to do with Adobe Acrobat Reader, is, when the save as dialog popup, you can use Sendkey commands to fill the dialogs automatically, but it is not adviseble, especially with muliti users.

You still have to install Adobe Acrobat Reader on every PC, Right?
You don't need Makepdf, its just an interface if you want to use Ghostscript directly, so you only need to install Ghostscript.

Besides, try to put Ghostscript on the server and point to it in the code, as the code needs the exact path of Ghostscript anyhow.

jaffer
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
7dudAuthor Commented:
Dear Jaffer,

Thanks once again for the quick reply. Your suggestions are well taken and failing the availability of any other solution, I will probably implement your solution.

Just as a side note I mis-typed when I said "Adobe Acrobat Reader" I meant the full version of "Adobe Acrobat Writer" (and distiller if needed)

If I have the AA Writer v6 SDK, would that help?

Being inherently lazy, I’m trying to cut out as much configuration/Administrator work as possible.

Cheers
Jeromy (A Kiwi, living in Thailand)
0
 
sigs66Commented:
Hi

I had a similar problem and my work around involved a piece of software called pdf995. I was able to output the access report to pdf reliably and the pdf995 printer can be set up as a network printer.

I know it is not want you want but it gets aroud all the problems you mentioned

Cheers Steve
A kiwi living in NZ
0
 
7dudAuthor Commented:
Steve,

1. Can you provide implimentation details?
2. Location of the "pdf995" site.
3. Any problems encountered?
4. Have you looked at Jaffers solution?

Jeromy
(Born in Ashburton, schooled in Christchurch, in Thailand since late 70's)

0
 
sigs66Commented:
Implementation is pretty straight forward go and look at www.pdf995.com is the site and they have a free version

try it see how it goes - you may need to check their developers FAQ

The one problem I encountered was that my code was faster than the printer - so I had program a delay into the code.

I have not looked at jaffer's solution

Cheers
Steve
0
 
fcomteCommented:
Hi,
Just want to warn you : dont use pdf995 on a terminal server (win2000 TS). Even if the company says it works fine, there are a lot of problems.
Fred
0
 
7dudAuthor Commented:
Dear Fred,

Thanks for the warning, advice well taken.

Jeromy
0
 
7dudAuthor Commented:
Dear Jaffer,

Have been able to get your solution working OK. Is there any way to save the resultant .pdf in colour instead of B&W? I checked the postscript settings and colour isn't an option.

Jeromy
0
 
jjafferrCommented:
Jeromy

I am glad its working for you,
Color and Resolution (dpi) depends on the postscript printer you choose,
so, Yes color is an option.

jaffer
0
 
Gustav BrockCIOCommented:
You may wish to study FreePDF:

  http://freepdfxp.de/fpxp.htm

It is totally free and uses Ghostscript and the Apple Postscript driver which is capable of handling colour.
Be sure to download the "Administration Manual" as well as the sources (some basic code samples) and perhaps even the multidocument option.

/gustav
0
 
Gustav BrockCIOCommented:
Did this work for you?

/gustav
0
 
7dudAuthor Commented:
Solution from Jaffer is working OK, so am sticking with that. Consequently didn't really check yours out.
Still would prefer a direct native adobe/Access solution, but "You can't always get what you want, but I try"
7DUD
0
 
jjafferrCommented:
Hi 7DUD

Could you please press on accept button next to the answer that solved your problem and close the question,

thanks,

jaffer
0
 
Gustav BrockCIOCommented:
Well, 7DUD (not 7 dudes I hope!), if you find the ideal solution, feel free to post back here so we all learn.
If Jaffer's solution works for you - be it permanently or as a work-around - you should accept his answer.

/gustav
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 4
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now