Print Reports to PDF

W

Walter

Hello,

I put all my report as subreport into one report and I want to print the new
all report as a PDF file. I have the below coding behind a button and it
works great, but I would like to choice a file name and directory to save the
PDF file. Is this possible? If yes, how would I do it.

Thank you,

Walter


Private Sub cmdExportToPDF_Click()

DoCmd.OutputTo acOutputReport, "rptMetricAll", acFormatPDF,
"c:pDFReports\" & "rptMetricAll" & ".pdf", False

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top