Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing custom forms

Status
Not open for further replies.

triman123

Programmer
Jul 11, 2007
1
GB
I'm currently writing and application which requires a form to be printed once it has been completed. The size of the form means that it cannot all be viewed on screen at the same time. I am currently using the following code to print the form:

Form1.Print;

The problem is that this only prints the visible part of the form and I want to print the whole form. Does anybody know how I can print the whole form, even the part that are not currently on screen.

 
The first thing I'd try: What you are probably seeing is the form with a number of scroll bars? I'd try hiding the form, then setting the displayable part to the full size of the form, then print it, then resetting the displayable part back to what it was and show the form after displaying a messagebox saying "Form Printed." or such.

Something to try anyway. If that doesn't work, I'd say you'd have to set up a report process that you'd send to printer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top