Solved

Save the screen to a file, how?

Posted on 1997-09-27
3
189 Views
Last Modified: 2010-04-04
Instead of printing the text and picture to printer
in the run time, how can I save them to a file in Word
or some other packedges so that I can print them out
from Word or the other packedges?
0
Comment
Question by:zhuhail
3 Comments
 
LVL 4

Accepted Solution

by:
erajoj earned 50 total points
ID: 1346362
I'm shooting in the dark here, since your question is slightly
ambiguous, however:
If you're just going to capture the screen from time to time,
use the "Print Scrn" button on the keyboard to get the whole screen or Alt+"Print Scrn" to get the window that currently has
the focus. Then just paste the image into Word.
No real use in doing it programmatically, unless you intend to;
either do it more often, or if it has to, for some reason, be
integrated into an application.

/// John

0
 

Expert Comment

by:Daveyboy
ID: 1346363
To start I concur with John about the use of such an appliaction But, if you really do need to do this then i would recomend One of two Functions that I have used before.
1: CopyRect.{This will allow you to copy a rectangle of a given canvas to another rectangle on another Canvas}.  the Code is easy to create:  Simply create a Bitmap i.e MyBit := TBitmap.create then use copyrect to create a copy of the screen to you Bitmap i.e.
CopyRect(Dest: TRect; Canvas: TCanvas; Source: TRect);
CopyRect(Trect(Bitmap.left,Bitmap.right etc.),Screen,Trect(0,0,Screen.width,Screen.height));

then just do a MyBit.savetofile('Filename');

Using Copyrect is the easiest but a little Slow
Try using the BitBlt function if you need to do this faster

////dave
0
 

Author Comment

by:zhuhail
ID: 1346364
Thanks to John and Dave.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now