Changing save location of PDF file in ReportToPDF module

  • Thread starter Thread starter bCloud9c
  • Start date Start date
B

bCloud9c

I am trying to change the save location of the PDF file. It automatically
defaults to the desktop and I need to be able to specify different file
locations in my code depending on some specific criteria. If anyone knows
how to programatically change the save location of the PDF file I would
greatly appreciate the help.

Thanks,
 
Why don't you simply pass the full path and filename to the conversion
function? If you want to allow the user to select a path/name then call the
FileDialog BEFORE you call my conversion function, supplying the full
path/filename previously selected by the user. The code to call the File
Dialog is I believe hidden behind a single one line function call.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Thank you so much for your response. What I ended up doing was eliminating
the call to the dialog box in the conversion function and instead passed the
conversion function the file path that I had created in my code. This
function has enabled me to automate a very tedious process of manually
scanning access reports in order to get them into PDF format. The
reportToPDF is working like a charm! Props on the module.

Stephen said:
Why don't you simply pass the full path and filename to the conversion
function? If you want to allow the user to select a path/name then call the
FileDialog BEFORE you call my conversion function, supplying the full
path/filename previously selected by the user. The code to call the File
Dialog is I believe hidden behind a single one line function call.
I am trying to change the save location of the PDF file. It automatically
defaults to the desktop and I need to be able to specify different file
[quoted text clipped - 3 lines]
 
Back
Top