D
dan.cawthorne
Hello,
I was wondering if it is possible to create i button with in custom
toolbar I've made which which will enable me to PDF, Current open
reports.
ive manage to create i button which will do this from a list of
reports i have shown in a list box, and code is as follows,
Private Sub CmdPdf_Click()
Dim strDefaultPrinter As String
' get current default printer.
strDefaultPrinter = Application.Printer.DeviceName
' switch to printer of your choice:
Set Application.Printer = Application.Printers("PDFCreator")
DoCmd.OpenReport [List0], acViewNormal
'Swtich back.'
Set Application.Printer = Application.Printers(strDefaultPrinter)
End Sub
So can this be done?
I was wondering if it is possible to create i button with in custom
toolbar I've made which which will enable me to PDF, Current open
reports.
ive manage to create i button which will do this from a list of
reports i have shown in a list box, and code is as follows,
Private Sub CmdPdf_Click()
Dim strDefaultPrinter As String
' get current default printer.
strDefaultPrinter = Application.Printer.DeviceName
' switch to printer of your choice:
Set Application.Printer = Application.Printers("PDFCreator")
DoCmd.OpenReport [List0], acViewNormal
'Swtich back.'
Set Application.Printer = Application.Printers(strDefaultPrinter)
End Sub
So can this be done?