Solved

Save the screen to a file, how?

Posted on 1997-09-27
3
193 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 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