Help! I am trying to figure out how to print graphics files (WMF) in
Visual Basic to the printer. So far, I have had no luck. I have tried
using Window's APIs with both the printer object's hdc and with an hdc
created with CreateDC. Neither worked. In fact, I couldn't properly
"close" the hdc created by CreateDC. I can get some graphics output,
but it is all out of proportion, and requires that I send something to
the printer through the printer object's methods. The things sent
through this way come out on a different page. The problem isn't in
the WMF either. I can display that to a window using mostly the same
APIs and have it come out perfectly. I can also view the WMF in a
graphics viewing program. I just can't send it to the printer through
the printer object, and I can't seem to go around the printer object
with APIs.
My ultimate goal is to print a graph with additional text information
to the printer. Telling the graph to print to the printer won't work
either. The graph always ejects the page printed on when it is done.
What can I do?
I just can't beleive that Microsoft would leave out some way of sending
graphics files to the printer!