Results 1 to 6 of 6

Thread: Printing the Window [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    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);
            }
    Last edited by jordan23; Jul 13th, 2004 at 07:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width