how do i print the second image in the second page of the print document..
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
Graphics graphics = e.Graphics;
Image bgFront = ((PictureBox)pictureBox_IDFront).Image;
e.Graphics.DrawImage(bgFront, 0, 0, 212, 337);
Image bgBack = ((PictureBox)pictureBox_IDBack).Image;
e.Graphics.DrawImage(bgBack, 212, 0, 212, 337);
}
i want to print the second image to another page. i will only need 2 pages for this. the front and the back image. each pages includes some string like this is for the second page. the back page.
e.Graphics.DrawString("Employee Information", printFont, Brushes.Black, y, x);
x = x + (printFont.Size + spacing);
e.Graphics.DrawString("Name: " + this.label_FullName.Text, printFont, Brushes.Black, y, x);
x = x + (printFont.Size + spacing);
e.Graphics.DrawString("Address: ", printFont, Brushes.Black, y, x);
thank you very much for your help.
What I have tried:
i tried e.hasmorepages but i don't know where to put my codes. thank you.