Print a report to PDF and name it

David Cochrane

New member
Local time
Today, 22:26
Joined
Oct 2, 2000
Messages
6
I am currently printing a report which is setup to a default printer of PDFWriter and the name is being pulled from some coding. I found the coding somewhere (forgotten where). The problem is that I am changing my computers over to Win2000 professional and the old way which worked on Win98 no longer works as it doesn't use the win.ini file the same way Win98 did.

Could anybody guide me in the right direction (either back to the website I got the original code from, or to a different way of doing it).

From what I can understand of the original code it wrote the filename to something in the win.ini then changed the printer to PDFWriter and then PDF Writer used the stored string to create the pdf file in that location with that name. Win 2000 doesn't use win.ini to store that information anymore but rather writes it to a Registry setting.

Thanks for any help in advance

David Cochrane
 
Hi David

Please see my response under Modules and VBA Section.

Rich Gorvin

[This message has been edited by Rich@ITTC (edited 05-14-2001).]
 

Users who are viewing this thread

Back
Top Bottom