PC Review


Reply
Thread Tools Rate Thread

controlling automatic printing of two-page report

 
 
Kyle
Guest
Posts: n/a
 
      25th Jan 2006
In my database, I've had to create a two-page report that is meant to
print double-sided on one sheet of paper. When printing out this report
for all records, the office is careful to use a duplexing printer.

But I have set up a command button on my input form that allows me to
print out a single copy of the report for a specific record in the
database. I used the following VB:
Private Sub Print_Update_Form_Click()
On Error GoTo Err_Print_Update_Form_Click

Dim stDocName As String

Dim strRecID As String
strRecID = "[C-CUREEventID]='" & Me![C-CUREEventID] & "'"

stDocName = "Update Forms for PIs"
DoCmd.OpenReport stDocName, acPreview, , strRecID

Exit_Print_Update_Form_Click:
Exit Sub

Err_Print_Update_Form_Click:
MsgBox Err.Description
Resume Exit_Print_Update_Form_Click

End Sub

If I add the line "DoCmd.PrintOut acPages..." after the
"DoCmd.OpenReport..." line, then it will print out both pages on two
separate sheets of paper. First question: is there a way of
automatically detecting from within Access if a user is connected to a
duplexing printer (I know - lots to ask)?

Second question: is there a command I could insert that would
automatically print the first page and then prompt the user to print
page two (give 'em time to flip the page and put it in the manual feed
of the printer)?

Alternately, can anyone suggest a simple approach to having this button
work for both users with duplexing printers and users with "simplexing"
printers?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling page change in a report Jerry Natkin Microsoft Access Reports 2 17th Sep 2007 02:00 AM
automatic printing / print report FIXED neilwebb Microsoft Excel Programming 2 11th Jul 2005 09:42 PM
Re: Automatic Page Printing etcnz Microsoft Frontpage 0 18th Mar 2004 04:34 PM
Re: Automatic Page Printing Thomas A. Rowe Microsoft Frontpage 0 18th Mar 2004 01:04 AM
Printing - Controlling the number of copies of a report K.P. Satish Microsoft Access 0 14th Aug 2003 03:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.