[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Print Screen

Posted on 2000-03-04
7
Medium Priority
?
252 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
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

834 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