I want to print a picture from picturebox, but when picture is too big then size doesn't fit on the paper, so I have to somehow resize the image to fit the paper... any ideas?
My print code:
Print Button pressed
If PrintDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then Call Watermark() PrintDocument1.PrinterSettings = PrintDialog1.PrinterSettings PrintDocument1.Print() End If
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim graphics As Graphics = e.Graphics graphics.DrawImage(PictureBox1.Image, New Point(100, 100)) End Sub