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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limit print report to 2 pages

Status
Not open for further replies.

mflower

MIS
May 6, 2001
52
0
0
NZ
Anyone knows how to limit the print out to 2 pages only? As in once preview, print out 2 pages only? And not only 2 pages only but printout back to back so only 1 page with two sides printed? Help!!
 
Checkout the Printout method in the online help, it does exactly that. Joe Miller
joe.miller@flotech.net
 
Hi!
Set parameters of PrintOut command.

private sub cmdPrintOut_Click
docmd.PrintOut acPages,me.PageFrom,me.PageTo,,me.Copies
end sub


me.PageFrom >>> textbox for entering start page No
me.PageTo >>> textbox for entering end page No
me.Copies >>> textbox for entering end copies amount
on your form


Aivars

 
Thanks Aivars & JoeMiller!
However, my problem is still not solved. I would like the printout to be double sided on 1 sheet of paper. docmd.Printout does not specify that:( Or is printing out double sided not possible unless done on the printer setup?
 
Not possible unless done in the printer setup. What I usually do in a situation like this is have a copy of the printer installed with the duplex option enabled then name it so I can use it for automated tasks like this.

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top