Alberto said:
I have a Panel control where I draw a graphic. Is there a way to print it?
Yes, there is. You can, for example, using the Control.DrawToBitmap()
method. That will result in a Bitmap instance that you can then draw
into your printed page during printing. But the most reliable way to
get that bitmap involves using the WM_PRINT message, which a) isn't
supported by all controls, and b) isn't supported by .NET (you'd have to
use unmanaged code to use it).
The best approach is to separate your drawing code from the control
altogether, so that it's more general purpose. Then you can just run
your printing code in the normal way, calling that general-purpose code
to draw into the Graphics instance for the printed page instead of the
control, when you want to print.
Pete