Hello guys,
I have a big problem with printing of windows.Forms :(
I have application with "print" button. I am trying to use
"e.Graphics.CopyFromScreen"... but in final result, over the
printing form appears other controls from the existing or new
applications in the screen ( Printing.. Please wait... - form for
example). I mean that "CopyFromScreen" getting all the forms in
defined coordinates and does not matter that the form that I want to
capture and print is bellow from "Printing.. Please wite" form -
for example.
I want to ask You:
If there any other way to do something like this:
// This happens in the main Form
Bitmap bt = new Bitmap(this);
//or
Bitmap bt = new Bitmap(Screen.FromControl(this));
Clipboard.SetImage(bt);
//Then i will get the image from the clipboard and print it....
If this is possible?
If Not, If the first variant ( using a CopyFromScreen ) have other
solutions?
Thank you in advance!!!