I am sure this has been answered before but I missed it.
I need to use the selprint function of a RichText Control.
Unfortunately it requires the following
hdc -- Thedevice context of the device you plan to use to print the
contents of the control.
and
Note If you use the Printer object as the destination of the text
from the RichTextBox control, you must first initialize the device
context of the Printer object by printing something like a zero-length
string.
Assuming I have the name of the printer or I just want to print to the
default printer.
What are the api calls to get the hdc and to send through a zero
length string?
Thanks in advance.
Jacob Bruner
ClassyComponents
Jacob@ClassyComponents.Com