[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Print Screen

Posted on 2000-03-04
7
Medium Priority
?
251 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…
Suggested Courses

656 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