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

Printer object doesn't print graphics - ACC2K2

Status
Not open for further replies.

genomon

Programmer
Aug 20, 2001
2,449
US
I have several Access reports that contain embedded graphics (NOT linked - OLE unbound). They will manually print fine from the dropdown menu. When I print them fom code using the printer object the graphics are omitted.
In the following code, strReportCode has been populated
with a valid report name, and acViewDesign and acViewPreview behave the same:

Code:
Public prt As Printer

DoCmd.OpenReport strReportCode, acViewDesign
Set prt = Reports(strReportCode).Printer
DoCmd.PrintOut
DoCmd.Close ObjectType:=acReport, _ ObjectName:=strReportCode, Save:=acSaveNo
Set prt = Nothing

Anyone have a fix for this? All Access XP SPs are current.
Thanks!

Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.
 
First time I ever answered my own post! For whatever reason, the Image Control plays nicely with the automation object, and the OLE Unbound does not. Switched controls, and all is well in IT World again.

Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.
 
Love to keep answering myself. The REAL problem turned out to be an unregistered OLE Server (had to uninstall/reinstall Access).

Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top