Andrew:
As you've found Acrobat 6 is totally different that Acro 5's PDF writer.
Acrobat 6's Adobe PDF Printer is essentially the Distiller Printer from
Acrobat 5, updated with new functionality. Adobe has never exposed an easy
method to work with Distiller (e.g. registry or com objects) unless you
start with a postscript file (where in you can use the Distiller's com
object.)
That said, we make a VBA library that you can call from within your Access
db (by using a function wrapper, and then using the Application.Run method
to run that function from VB) that supports outputting Access reports to PDF
files, even using Acrobat 6. Its pretty easy to use with very little code.
You can find it on our web.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg
"Andrew" <andrew@abc.ca> wrote in message
news:x08Zb.7509$Cd6.674687@news20.bellglobal.com.. .[color=blue]
> My VB Application opens an Access Report and has an option to generate the
> report in PDF once the report is closed. This is accomplished by:
>
> - Switching over to the Acrobat Printer (i.e. PDFWriter) from the default
> printer.
>
> - Setting a string type sub key "PDFFilename" in the registry
> "HKEY_CURRENT_USER\Software\Adobe\Acrobat PDFWriter" to store the PDF in
> a user selected directory with a filename that's determined by VB codes.
>
> - Generating the PDF by issuing the command ".DoCmd.OpenReport sReport,
> acViewNormal".
>
> - Closing the report by issuing the command ".DoCmd.Close acReport,
> ReportName, acSaveNo".
>
> - Resetting to the default printer from Acrobat Printer "PDFWriter".
>
> This works fine with Acrobat 5.0. When I recently installed Acrobat 6.0, I
> managed to set the directory and name of the PDF into a string type sub[/color]
key[color=blue]
> "PDFFilename" in the registry "HKEY_CURRENT_USER\Software\Adobe\Acrobat
> PDFMaker". However, I ran into a host of problems:
>
> - Acrobat 6.0 does not recognize the filename in the string type sub key
> "PDFFilename" in the registry. Instead, it uses its own default filename[/color]
to[color=blue]
> save the PDF.
>
> - Acrobat 6.0 does not recognize the user selected directory in the string
> type sub key "PDFFilename" in the registry. Instead, it saves the PDF in[/color]
the[color=blue]
> "My Documents" directory even though I left the "Location" textbox blank[/color]
in[color=blue]
> the printing preference property of Acrobat 6.0 printer "Adobe PDF" in
> Window's printer setting.
>
> Can you please show me the proper procedures to automatically generate PDF
> by using Acrobat 6.0?
>
> The methods that I used in Acrobat 5.0 to set up PDFWriter does not
> work with Acrobat 6.0. Would I have to work with the registry, or
> postscripts, or distiller?
>
> Your help is greatly appreciated.
>
> Thank you
>
>
>
>[/color]