Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2006

Tip: Looking for answers? Try searching our database.

Controlling a printer from VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mac - 19 Sep 2006 08:20 GMT
Dear All,

I have a module that carries out various end of month procedures for
me, part of this includes printing a number of reports. Because some of

the reports are external I need to print them on headed paper in a
seperate tray from the blank A4 paper. Is there a way to instruct the
printer from within my module to use the approipriate trays, for
example, the headed A4 is tray 4 (printerCaps class advises that it's
been assigned the value 256 which I think may be a problem in and of
itself). I'm using an HP 5100dtn and Access 2003 on an XP SP2, could
any of this have a bearing on how the instrutions are being
interpreted?

TIA

Andy

DoCmd.OpenReport "DD/SO - Cover Letter", , , , acHidden
With Reports("DD/SO - Cover Letter").Printer
.PaperBin = 11
End With
Allen_N - 20 Sep 2006 01:32 GMT
Mac,

I haven't tried controlling the printer from Access, but it is pretty easy
from Excel. I suggest that you record an Excel macro that sets up the print
job the way you want it, and paste the code into your Access VBA code.

> Dear All,
>
[quoted text clipped - 18 lines]
> ..PaperBin = 11
> End With
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.