Hi,
I am new to Access.
I been trying to print my Access 2000 Report to PDF without any success. After a long search, I found the following fucntion.
Public Function PrinttoPDF(rptname As String, outputfname As String) As String
Set Application.Printer = Application.Printers("Adobe PDF")
DoCmd.OpenReport rptname, acViewNormal
Application.Printer = Nothing
End Function
PrinttoPDF("invoice","c:\pdfile.pdf")
When running this module, I got an error message Application.Printers method or data member not found.
How do I get Printers method to work?
Do I need to download it from somewhere?
It doesn't appear to exist.
What is "Adobe PDF" argument? Is it an actual PDF printer like Acrobat Distiller or HP OfficeJet PS?
Thank you for your assistance.
I am new to Access.
I been trying to print my Access 2000 Report to PDF without any success. After a long search, I found the following fucntion.
Public Function PrinttoPDF(rptname As String, outputfname As String) As String
Set Application.Printer = Application.Printers("Adobe PDF")
DoCmd.OpenReport rptname, acViewNormal
Application.Printer = Nothing
End Function
PrinttoPDF("invoice","c:\pdfile.pdf")
When running this module, I got an error message Application.Printers method or data member not found.
How do I get Printers method to work?
Do I need to download it from somewhere?
It doesn't appear to exist.
What is "Adobe PDF" argument? Is it an actual PDF printer like Acrobat Distiller or HP OfficeJet PS?
Thank you for your assistance.