• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

URGENT!!!!!!! Printing a forms content

At the moment i am using:

Form1.print

But this prints the actual form, is there a way that i can print everything on the form in there positions but not the form, frame or the buttons.
0
pastiesrus
Asked:
pastiesrus
1 Solution
 
WarLordCommented:
yes it is possible, create another form called:
frmprint


make the borderstyle of the form none(first option)... create the same ammount of labels as you have in the form as textboxes which you want to print(the main form)then make background color of the form white ( so you will have a transparant form as you print it)

then go back to the first form make a button

if you now have a textbox in your main form called lets say: txtname

place this code under the button:

frmprint.label1.caption = txtname.text
frmprint.PrintForm

this will work...

Greets Erik


0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now