There is a routine that is used that you can adapt to capture the screen. But, you don't save images to text file format. You save to jpg, ( Jpeg) bmp, (bitmap) and other formats.
You can't store a bitmap inside a txt file (well you can, but it's not a good idea), so the best approach is to use a .doc. You'll need to use Word's object model for this, here's an intro: http://support.microsoft.com/ kbid=316383
Capture active form and save as image to text file?
Capture active form and save as image to text file?
Sude Singh
Check out the first post in this thread:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=206866&SiteID=1
There is a routine that is used that you can adapt to capture the screen. But, you don't save images to text file format. You save to jpg, ( Jpeg) bmp, (bitmap) and other formats.
james
aka:Trucker
thegoonie
You can also try this:
Dim b As New Bitmap(Me.Width, Me.Height) Me.DrawToBitmap(b, New Rectangle(0, 0, Me.Width, Me.Height))b.Save(
"C:\Form.bmp") 'To save to a JPEG or another format include this argument:b.Save(
"C:\Form.jpeg", Imaging.ImageFormat.Jpeg)Hope that helps,
Jonathan Aneja
The VB Team
Eugene Zakhareyev
Dear Sirs,
Thank you for your replies, you have been very helpful!... but how do I drop the image into a document and save it there as a txt or doc file
Best Regards
Cathrine
SneakPreview