ConvertReportToPDF save file PDF

  • Thread starter Thread starter samp
  • Start date Start date
samp said:
save file in another location pre-defined

You've given us very little detail about what you are doing, but I'll take a
guess. Set the default printer to a pdf printer. Then name the file and
include the entire path, i.e.:

strPath = "C:\Databases\MyReport" & uniquenumber & ".PDF"

where uniquenumber is a number that you get from the form calling the code
like the ProductID, or the current date/time. I use Win2PDF as a pdf maker
which is programmable for that file name.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

Disclaimer: Any code or opinions are offered here as is. Some of that
code has been well tested for number of years. Some of it is untested
"aircode" typed directly into the post. Some may be code from other
authors. Some of the products recommended have been purchased and
used by the author. Others have been furnished by their manufacturers.
Still others have not been personally tested, but have been
recommended by others whom this author respects.

You can thank the FTC of the USA for making this disclaimer necessary.
 
Back
Top