Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Print form image

Print form image

Print form image

I have a big VB6 Project with many Forms. Boss wants me to provide him with "Screen Shots" of every form (who knows what for?). If I do it 'by hand', it will take days.

I did try
* File - Print... - Current Project option, Form Image checkbox, and send it to the printer. The issue is, a lot of the controls (frames and other containers) on many forms print as black rectangles so you cannot see any controls placed in those containers.
* Print to File - that did create a file, but I have to specify the name (which is fine) and the extension. I have no idea of what type of file VB creates this way?

In perfect world, I would like to make a printout of entire Form, including the title bar at the top, and maybe even the Form's name.

What can I do?

---- Andy

There is a great need for a sarcasm font.

RE: Print form image

Forms have a PrintForm method. It isn't completely ideal, as it only prints the client area of the form (i.e. no borders or title bar). You can iterate the forms and call the method on each form found (of course this isn't completely straightforward ...)

You'll also need a print driver that can print to a file in a selected graphics format and, for convenience sake, doesn't prompt for a filename. One such product is ImagePrinter Pro. Unfortunately it isn't free, but it does the job.

RE: Print form image

Turns out, Boss wanted me to provide him with "Screen Shots" for somebody else. What I gave him - some printed Form images - was not what he wanted. So I asked him what he really wanted. Well, he doesn't know, and the people who asked for it don't know either. Why do they bother people? ponder

But thank you for your suggestions. I'll keep it in mind if 'they' come back to bother me again. laser

---- Andy

There is a great need for a sarcasm font.

RE: Print form image

File|Print... in the IDE can also print your forms.

But if they have no idea what they want it is sort of a moot point.

RE: Print form image

He did say he'd tried File > Print...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close