?
Solved

Print Screen

Posted on 2000-03-04
7
Medium Priority
?
250 Views
Last Modified: 2010-05-02
I want Current window programmes screen to be printed, if user cleicks/presses a button. My idea was to presss ALT+Print Screnn (which will save the current window into clip board) and then use printer.paintpicture method to print it.

Can we save the current window in clip board using any API of DLL functions ? (i.e without pressing ALT+print Screen)
0
Comment
Question by:snayaks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 800 total points
ID: 2582955
"HOWTO: Capture and Print the Screen, a Form, or any Window"
http://support.microsoft.com/support/kb/articles/Q161/2/99.ASP

"HOWTO: Copy the Screen or Active Window to the Clipboard from Visual Basic"
http://support.microsoft.com/support/kb/articles/Q240/6/53.ASP
0
 
LVL 2

Expert Comment

by:johnny6
ID: 2582962
snayaks:
     I think you will find the answer you are looking for in one of these two articles:

http://support.microsoft.com/support/kb/articles/Q161/2/99.ASP?LNG=ENG&SA=ALLKB&FR=0 

http://support.microsoft.com/support/kb/articles/Q140/8/85.asp?LNG=ENG&SA=ALLKB&FR=0 

     Hope this helps.

John
0
 
LVL 2

Expert Comment

by:johnny6
ID: 2582967
Erik37:
     It seems as though you beat me by a few minutes while I was searching for the same links as you.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 44

Expert Comment

by:bruintje
ID: 2582987
they're not all the same :O)

and for some extra sourcecode for exact this question

http://www.thescarms.com/vbasic/Capture.htm

"Capture the entire contents of a form.
Capture the client area of a form.
Capture the entire screen.
Capture the active window.
Capture any portion of any window.
Create a Picture object from a bitmap and a palette.
Print a Picture object as large as possible on the page. "

that should work

HTH:O)Bruintje
0
 
LVL 1

Author Comment

by:snayaks
ID: 2587673
Hi Erick37

I tried with

http://support.microsoft.com/support/kb/articles/Q161/2/99.ASP 

example and  it worked fine

Thanks a lot

snayaks




0
 
LVL 1

Author Comment

by:snayaks
ID: 2587699
-
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2588099
You're welcome.
Glad to help.
:-)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

762 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