Hi guys,
I have a problem here, I have an image from certain file path. Now what I want to do is to pass that image to the printpreviewdialog in order to show that image and I don't know where to continue with this sample code:
It appears to be blank paper, I know there's missing here.VB Code:
private void button1_Click(object sender, System.EventArgs e) { PrintPreviewDialog t = new PrintPreviewDialog(); printDocument1.PrintPage += new PrintPageEventHandler(pr); t.Document = printDocument1; t.ShowDialog(); } private void pr(object sender, PrintPageEventArgs e) { // where source image came from Image i = Image.FromFile("C:\\idBack.jpg"); i.Dispose(); }![]()


Reply With Quote
