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!

In Application object Printer method is not available

Status
Not open for further replies.

roltrap

Programmer
Jun 8, 2001
15
0
0
NL
Hello,

I'm trying to print a report to a specific printer. However when I use this code:

Set OriginalPrinter = Application.Printer

It doesn't recognize Printer as a method and I get this error:

method or datamember not found.

Does anyone know how I can make the Printer method available in the Application Object?

best, Guido
 
What is OriginalPrinter dim'ed as?
I would expect something like:
Code:
Dim OriginalPrinter As Printer
Set OriginalPrinter = Application.Printer
If this isn't working, what References do you have checked (Tools, References from a VBA window).

And what version of Access are you using?


[pc2]
 
hi,
thanks for answering.

OriginalPrinter is indeed dim'd as Printer
I use Access 2000.
These are my References:

visual basic for applications
microsoft access 9.0 object library
microsoft dao 3.6 object library
ole automation
microsoft visual basic for applications extensibility 5.3
microsoft word 9.0 object library
acrobat distiller
adobepdfmakerx
microsoft office 10.0 object library
pdfcreator

best, Guido
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top