I need a utility to print the screen. Very basic, no User interface. Just a simple control or file. The user needs to print the current VB form at runtime. Does anyone know how I can accomplish this.
Printable View
I need a utility to print the screen. Very basic, no User interface. Just a simple control or file. The user needs to print the current VB form at runtime. Does anyone know how I can accomplish this.
Just press the print screen button whenever you want, and then open the Paint application (under Programs/Accesories) and select Paste from the Edit menu. You will get the user interface into Paint and then select Print from the File menu. This is it.
There's an excellent example here : http://codeguru.developer.com/vb/articles/1998.shtml - this is a module that you can use in your program to capture any form or the whole desktop into a standard VB Picture object - this can then be saved / printed in the normal way.
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
Hi !
the simplest way to achieve this I know is this:
form.PrintForm
Thats it !! No fuzz.
If there are graphics on your form be sure to set AutoRedraw to True.
regards,
Matthias.
I had a thought,
You know, I thought it a lot,
I thought I was smart,
Now I know that I'm not
- The Presidents Of The United States Of America