therios

I am in need of saving a completed form to a file. I would like to save a screenshot of the form but am open to any suggestions. I know that I can copy the form with a screenshot but I think that is a kludge but am open to that idea as well. I would not be totally adverse to saving it back into a sheet if that was easier.

Any ideas are greatly appreciated!!




Re: Visual Basic General Save a JPG or SOMETHING of a completed form

Brendan Grant

There are only a few quick and easy ways of doing it I'm afraid and which method you choose depends on what you want to do.

You might try doing a SendKeys.SendWait("%{PRTSC}") and then grab the image out of the clipboard... or use Graphics.CopyFromScreen() which gives you a bit more control... unfortunatly there is no... SaveFormToImage() function in the .NET framework and any you find are likely going to use one of the two methods I described.






Re: Visual Basic General Save a JPG or SOMETHING of a completed form

JohnWein

Kludge or not. That's the way it's done. Use CopyFromScreen or DrawToBitmap, then save in whatever format you want. PNG or GIF would be better than JPEG for a screenshot. JPEG is not a good format for line art.



Re: Visual Basic General Save a JPG or SOMETHING of a completed form

NuclearIntern

If all you need is a screen shot, then run the program so the form pops up and hit Alt-Print Screen, then go into something like paint and hit Ctrl-V (paste). Alt-PrintScreen will capture only the active window, i use this feature for homework constantly. again this really only helps if you need a screen shot, if you need to then use the image as part of your program in some way then there is most likely a better way.