Good Morning
I currently have a form that has four check boxes on it, to allow users to select which report that would like to print with the current record.
It is working perfectly but now need need to provide the users with an option to use the the same checkboxes to choose which reports they would like to print to pdf. As One PDF copy. and the save under clients folder
I have been doing allot of scratching around on the net, and not to sure if this is possible, and hoping that maybe if i can send multiple reports to a single print job and define the print job as my pdf printer that might work.
I was wonder if anyone has maybe made use of script to allow this.
Currently the only code i have is the selection of my reports. and then Lebans version of printing to pdf.
But not to sure how and can amend this to make it work
To select reports
And an extract of Lebans
any possibly guidance or help would be appreciated
Thank you very much in advance
Regards
SN
I currently have a form that has four check boxes on it, to allow users to select which report that would like to print with the current record.
It is working perfectly but now need need to provide the users with an option to use the the same checkboxes to choose which reports they would like to print to pdf. As One PDF copy. and the save under clients folder
I have been doing allot of scratching around on the net, and not to sure if this is possible, and hoping that maybe if i can send multiple reports to a single print job and define the print job as my pdf printer that might work.
I was wonder if anyone has maybe made use of script to allow this.
Currently the only code i have is the selection of my reports. and then Lebans version of printing to pdf.
But not to sure how and can amend this to make it work
To select reports
Code:
Private Sub cmdPrintReports_Click()DoCmd.RequeryIf Me.DisRecipient = True
ThenDoCmd.OpenReport "rpt1RecipientCopy", acViewNormal, , "DocId = " & Me!DocID
End If
If Me.DisReturn = True ThenDoCmd.OpenReport "rpt2ReturnCopy", acViewNormal, , "DocId = " & Me!DocID
End If
If Me.DisFile = True ThenDoCmd.OpenReport "rpt3FileCopy", acViewNormal, , "DocId = " & Me!DocID
End If
If Me.QualityReview = True ThenDoCmd.OpenReport "rpt4QualityReview", acViewNormal, , "DocId = " & Me!DocID
End If
End Sub
And an extract of Lebans
Code:
Dim tmpPrinter As PrinterSet
tmpPrinter = Application.Printer 'Default PrinterSet Application.Printer = Application.Printers("Adobe PDF")
'Change the application printer to adobeDoCmd.OpenReport "Rpt1RecipientCopy", acViewPreview 'Open the Report in Priview ModeFileName = "C:\"'SendKeys "^p~" & FileName & "~", False
'Send the Open Report to a .pdf fileDoCmd.Close
acReport, "Rpt1RecipientCopy" 'Close reportSet tmpPrinter = Application.PrinterSet Application.Printer = Application.Printers(0) ' Restore Default printers
any possibly guidance or help would be appreciated
Thank you very much in advance
Regards
SN