Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
How can i generate screenshots and save them in another system?

i can capture screenshots and save it in the same machine.But i want to save it to another system in the same network.

its a windows application.
Posted
Updated 12-Jan-12 19:41pm
v3
Comments
[no name] 13-Jan-12 0:39am    
Can you please elaborate?
Are you talking about
1. pasting a screen capture in another system or
2. capturing the entire screen using C#

If "1", after screen capture, since the capture is in ClipBoard we can handle it in c# using ClipBoard class and paste it anywhere.
If "2", simulate the key "Print Screen" using C# events/classes and follow "1"
jasen.selvaraj 13-Jan-12 1:40am    
i can capture screenshots and save it in the same machine.But i want to save it to another system in the same network.

Google for Screen Capture[^] and you'll get what you want!
 
Share this answer
 
Comments
jasen.selvaraj 13-Jan-12 1:40am    
i can capture screenshots and save it in the same machine.But i want to save it to another system in the same network.
Prerak Patel 13-Jan-12 3:18am    
Try impersonating before copy.
johannesnestler 13-Jan-12 5:00am    
so you have the code to take the screenshot? save it to a file(temp?) and copy the file to any network-location with normal file operation. Seems to be easy - did I understand you wrong?
hi
i am generating screenshots using the following code.
C#
private void timer1_Tick(object sender, EventArgs e)
        {
            this.Hide();
            System.Drawing.Bitmap Bitmap;
            Graphics Graps;
            Bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
            Graps = Graphics.FromImage(Bitmap);
            string s = comboBox1.SelectedItem.ToString()+" "+ DateTime.Now.ToString();
            s = s.Replace(':', '.');
            Graps.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
            Bitmap.Save(@"\\192.168.1.10\Temparea\Screenshotseg\" + s + ".Jpeg", ImageFormat.Jpeg);

            //Bitmap.Save(@"Z:\\Screenshotseg\" + s + ".jpeg", ImageFormat.Jpeg);
            
            //MessageBox.Show(Application.StartupPath.ToString());
            //Bitmap.Save(@"Screenshots\" + s + ".jpeg", ImageFormat.Jpeg);
            //MessageBox.Show("Your Screen Shot Save in Desktop");
            this.Show();
        }
 
Share this answer
 
v2
Comments
Anuja Pawar Indore 27-Jan-12 1:52am    
Use improve question and add your code there instead of posting this as an answer.
C#
bmpScreenShot.Save(@"\\192.168.1.10\Temparea\Screenshotseg\" + s + ".Jpeg", ImageFormat.Jpeg);
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900