>I inserted the following into the code for the ConvertReportToPDF function.
>This is about 46 lines down into Stephen's code . That does not count
[quoted text clipped - 46 lines]
>>
>> bob h
Not using the class code Stephen has for requesting the save location. I've
done that with the code at
http://www.mvps.org/access/api/api0001.htm
I just downloaded Stephen's example database yesterday. That is something I
want to do, but have not yet seen if I can using Stephen's class code. If
not, I can do it using the above code in place of his call to fFileDialog.
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
>> I inserted the following into the code for the ConvertReportToPDF function.
>> This is about 46 lines down into Stephen's code . That does not count
[quoted text clipped - 51 lines]
>
> bob
Bob Howard - 29 Aug 2008 19:55 GMT
> Not using the class code Stephen has for requesting the save location.
> I've done that with the code at
[quoted text clipped - 65 lines]
>>
>> bob
Thanks, John. I'll also play with it a bit as I suspect we're heading down
the same path here...
I also note that Stephen uses the FileSave dialog ... I may also try using
the FileSaveAs dialog (it's slightly different...). Bob.
Bob Howard - 29 Aug 2008 20:04 GMT
>> Not using the class code Stephen has for requesting the save location.
>> I've done that with the code at
[quoted text clipped - 70 lines]
> I also note that Stephen uses the FileSave dialog ... I may also try using
> the FileSaveAs dialog (it's slightly different...). Bob.
Actually, elsewhere in my application I use the "ahtCommonFileOpenSave"
function by Ken Getz and Paul Litwin. Perhaps I'll modify Stephan's code to
use their function rather than calling his class (as done today). Their
functions accepts a default file name as the 6th (of 8)variable passed...
Bob
Bob Howard - 29 Aug 2008 20:49 GMT
> Not using the class code Stephen has for requesting the save location.
> I've done that with the code at
[quoted text clipped - 65 lines]
>>
>> bob
OK ... here's what I did...
In my program (before calling the Lebans code), I inserted a call the Getz /
Litwin function to get a filename. I pass variables to set a starting
directory (I used "My Documents"), set a title for the panel, various flags,
a default file name, the extension (pdf), and a few other things. It passes
back the chosen filename as a string (or an empty string if the user clicks
the Cancel button).
Unlesless the user clicked Cancel, I pass the result along to the Lebans
code to make the PDF. In the function call to the Lebans code, I set it so
it would not open the file save panel.
And since the Getz / Litwin code already checks for saving to a file that
already exists, I removed the extra code that you previously provided me
that I had inserted in the Lebans code (there was no need for it anymore).
This is now all working together just fine! And the Lebans code is back to
being unmodified (which I prefer).
bob h