I have a form with a PictureBox in it. The PictureBox has controls paced over it. The PictureBox is the parent to the controls. The PictureBox is larger than the form and I use a ScrollBar to scroll down to view the entire PictureBox. I can use the following function and print the PictureBox, but not the controls on it. Since the PictureBox is larger than my screen, I cannot do a print screen. The idea was to take the document and make the form look exactly the same as the document, so I just created controls in the positions over the picture. I do not have to use a PictureBox, as I just used it to get the controls placed in the correct positions. Any help is appreciated!!
PrintPreviewDialog1.Document = PrintDocument2
Private Sub PrintDocument2_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument2.PrintPage
e.PageSettings.Color = False
e.Graphics.DrawImage(PictureBox2.Image, e.PageBounds.X, e.PageBounds.Y, 897, 1114)