Rainer2000
IS-IT--Management
Hi,
I have a report which I need to print out in the following way:
Print one set normal in consecutive order.
Print second set unsorted, which means two pages of page one, two pages of page 2 and so on.
My procedure looks like this:
Dim stDocName As String
stDocName = "Versand"
Set Application.Printer = Application.Printers(3) ' D1A
DoCmd.OpenReport stDocName, acNormal
DoCmd.PrintOut , , , , 1
stDocName = "Versand"
DoCmd.OpenReport stDocName, acNormal
DoCmd.PrintOut , , , , 2, False
DoCmd.Close
But all this does is printing out 3 sorted reports
Also I would like to get rid of The application.Printer statement and always force the default printer. Printer is a HP4050.
Thanks for any assistance.
Rainer
I have a report which I need to print out in the following way:
Print one set normal in consecutive order.
Print second set unsorted, which means two pages of page one, two pages of page 2 and so on.
My procedure looks like this:
Dim stDocName As String
stDocName = "Versand"
Set Application.Printer = Application.Printers(3) ' D1A
DoCmd.OpenReport stDocName, acNormal
DoCmd.PrintOut , , , , 1
stDocName = "Versand"
DoCmd.OpenReport stDocName, acNormal
DoCmd.PrintOut , , , , 2, False
DoCmd.Close
But all this does is printing out 3 sorted reports
Also I would like to get rid of The application.Printer statement and always force the default printer. Printer is a HP4050.
Thanks for any assistance.
Rainer