A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Print Reports to PDF



 
 
Thread Tools Display Modes
  #1  
Old December 8th, 2009, 02:41 AM posted to microsoft.public.access.reports
Walter
external usenet poster
 
Posts: 129
Default Print Reports to PDF

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
  #2  
Old December 8th, 2009, 05:48 AM posted to microsoft.public.access.reports
Benjamins via AccessMonster.com
external usenet poster
 
Posts: 68
Default Print Reports to PDF

Hi,

Try this to choice file name and location
http://www.mvps.org/access/api/api0001.htm

Walter wrote:
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


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200912/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.