N
ND Pard
Thanks to the internet site:
http://msdn.microsoft.com/en-us/library/ee336132.aspx
I have the following subprocedure:
Private Sub Print_to_PDF_Click()
On Error Resume Next
Dim reportName As String
reportName = "HCBS CMgr Smmry Report"
DoCmd.OpenReport reportName, _
View:=acPreview, WindowMode:=acHidden
Set Reports(reportName).Printer = _
Application.Printers("CutePDF Printer")
DoCmd.OpenReport reportName, _
View:=acViewNormal
End Sub
This appears to be a good start; however, it stops and
waits for me to enter the name of the PDF report.
I want the name to come from a variable,
say: strMyPDFName
Then I'll send it to through a Loop to print approx
50 different PDFs, each with a unique name.
How can I modify the above code to pass the
PDF name to the PDF report?
Your help is needed and will be GREATLY appreciated.
Thanks in advance.
http://msdn.microsoft.com/en-us/library/ee336132.aspx
I have the following subprocedure:
Private Sub Print_to_PDF_Click()
On Error Resume Next
Dim reportName As String
reportName = "HCBS CMgr Smmry Report"
DoCmd.OpenReport reportName, _
View:=acPreview, WindowMode:=acHidden
Set Reports(reportName).Printer = _
Application.Printers("CutePDF Printer")
DoCmd.OpenReport reportName, _
View:=acViewNormal
End Sub
This appears to be a good start; however, it stops and
waits for me to enter the name of the PDF report.
I want the name to come from a variable,
say: strMyPDFName
Then I'll send it to through a Loop to print approx
50 different PDFs, each with a unique name.
How can I modify the above code to pass the
PDF name to the PDF report?
Your help is needed and will be GREATLY appreciated.
Thanks in advance.