Printing the Window [Resolved]
Ok, I need to know how to print the Window(Form). I have code from Pirate that gives me the Alt + PrintScreen Capture but how do I print that out to the printer?
Code:
private Image GetScreenCapture(bool FullScreen)
{
if (FullScreen)SendKeys.SendWait("{PRTSC 2}");
else SendKeys.SendWait("%{PRTSC}");
IDataObject objData=Clipboard.GetDataObject();
return (Image)objData.GetData(DataFormats.Bitmap);
}
private void button1_Click(object sender, System.EventArgs e)
{
//Take shot !
GetScreenCapture(false);
}