Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.DrawImage(IMG1.Image, e.MarginBounds.Left, e.MarginBounds.Top) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PrintPreviewDialog1.PrintPreviewControl.Zoom = 1 PrintPreviewDialog1.Document = PrintDocument1 PrintPreviewDialog1.ShowDialog() End Sub
PictureBox
System.Windows.Forms.Control.OnPaint
System.Windows.Forms.Control.Paint
System.Drawing.Graphics
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)