Print Form Using Visual Basic PowerPack PrintForm?Jan 20, 2011
I have created a form that we use for our employee goal setting. I would like to let the users print the form. The form is quite large and has scroll bars. I am trying to use the Printform to print the form. I would like to use autofit or some other type of scaling to get the form to fit on one page. I have done some looking aroung and have seen the following instrutions a couple of times.
1.Drag a PrintForm component onto the Form from the Visual Studio Toolbox
2.Set the PrintForm.BodyContainer property to reference your Form
3.Drag a PrintPreviewDialog component onto your Form from the Visual Studio Toolbox
4.Set the PrintPreviewDialog.Document property to reference the PrintForm component
5.Add a button and button click handler. In the handler call PrintPreviewDialog.ShowDialog()
I don't know how to set the PrintForm.BodyContainer propery (number 2). I am using Visual Basic 2010 express.