Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request for Sorting is ignored

Status
Not open for further replies.

Rainer2000

IS-IT--Management
Apr 27, 2003
61
DE
Hallo there,

I intend to print out a report sorted in such away that i get Page 1 twice, Page 2 twice and so on.
Access seems to ignore this request. It prints page 1 though X always one single page.
Here is the code I have.

Private Sub Befehl176_Click()
On Error GoTo Err_Befehl176_Click
Dim stDocName As String
stDocName = "Versand"
Set Application.Printer = Application.Printers(2) ' D1A
DoCmd.OpenReport stDocName, acPreview
DoCmd.PrintOut , , , , 2, False
DoCmd.Close

Can anybody hlp?
 




Can you do this WITHOUT code? The problem could be with your printer driver.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Hallo Skip,

thank you for your response. Yes I can do this without Code.
I am using a HP Laserjet 4050 Postscript.

From the "silence" in the forum I assume the code should work.
I will do some more testing like deleting/rewriting the code. Maybe it's one of the items that do not matter how it is done, but who does it. Thanks for now for your attention.

Rainer
 
All the times that I have ever printed more than one set of reports in the past is I have setup a loop structure and performed this the number of times that the user needs (then you dont hard code it either).
 
Hallo genomenon,

I am using Access 2007.
thank you for your link to the article. I have introduced
Application.Printer = Nothing
to reset all printer settings before calling my printer.

I am now getting what I want.

Thanks to all that responded.

Rainer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top