Solved

Print Screen

Posted on 2000-03-04
7
244 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 200 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 42
Computer crashes, following error message in event manager 5 198
Add a task in Outlook from access 11 39
Advice in Xamarin 21 79
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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