I found code online which uses Windows API's to save Access reports to
pdf format files. I'm using the full version of Adobe Acrobat
Professional 7.0. The problem is that regardless of what I put in the
code as a filename it automatically saves the report based on the
report name instead of the string passed to the registry key. The code
is as follows:
'************************************************* *****************
'Setting value for PDFFileName in the registry
'stops file dialog box from appearing
bSetRegValue HKEY_CURRENT_USER, "Software\Adobe\Acrobat PDFWriter",
"PDFFileName", sPDFPath + sPDFName
'************************************************* *****************
The line of code passes the correct string for path and filename to the
registry which gets written properly but Acrobat still saves the file
as "reportname.pdf", where the name of the Access report converted to
pdf is "reportname", regardless of what the registry key says. I can't
find anywhere in the Acrobat print settings to override this. Help,
please.