Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 2nd, 2004, 03:58 AM
Authorized User
 
Join Date: Sep 2004
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
Default PrintScreen and Save


Hi,

How to create VB6 program to capture(printscreen) the datagrid, and save it as image file like jpeg, or bmp?

Thanks.
 
Old September 2nd, 2004, 11:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

You don't need one. If you want to capture the ENTIRE screen, just press PRINT SCREEN; if you want to capture ONLY the ACTIVE window, press Ctrl-PRINT SCREEN. Then open something like Paint or Microsoft Photo Editor and click EDIT PASTE. You can then save the image in the format you want.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old September 2nd, 2004, 07:37 PM
Authorized User
 
Join Date: Sep 2004
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Yes I am aware of that method. But what I want is:

by pressing a button, the program will capture the active screen and save it without the user have to press the ctrl+PrintScreen and open the Paint to save it.

thanks

 
Old September 3rd, 2004, 03:50 AM
Authorized User
 
Join Date: Jun 2003
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The following article should give you some pointers

http://www.developer.com/lang/other/article.php/615101





Similar Threads
Thread Thread Starter Forum Replies Last Post
save in location Archangel Word VBA 1 July 13th, 2007 04:09 PM
save database kim VB How-To 3 April 2nd, 2006 09:26 AM
Prevent Printscreen and copy paste Malabika Das ASP.NET 1.0 and 1.1 Professional 0 November 2nd, 2005 07:26 AM
How to save the different filename loveperson VB How-To 1 December 23rd, 2004 04:53 PM
Will not save luckychap Access 3 January 26th, 2004 01:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.