On Thu, 14 Aug 2008 08:36:31 -0700, freddy
<fr****@discussions.microsoft.comwrote:
I have looked all around the web and I find print articles like in
codeproject or msdn but I am looking for a simple article that will
explain
how to print the content of a form. Can any one please help me
Define "content of a form". If you want the exact graphics the form
displays on the screen to be printed, there's not really a good .NET way
to do that. You can use the Control.DrawToBitmap() method to get the
visible part of a form into a bitmap, but it's not a general-purpose
solution (it's affected by on-screen clipping).
But if you simply want to reformat the data contained in the form's
controls and print that, then that's not too difficult at all. The MSDN
documentation does in fact describe this to some extent, so if you're
simply having trouble understanding what the MSDN documentation is trying
to say, please refer to whatever specific pages you would like help with.
Pete