hi dear sir
i have done my project which is a offline application in this application i just can add on print page only one page
but i want to print some things in one more page
can you help me sir for solving such problem
What I have tried:
namespace afghan_global_insurance_travel_insurance
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button4_Click(object sender, EventArgs e)
{
AGIprintPreviewDialog.Document = AGIprintDocument;
AGIprintPreviewDialog.ShowDialog();
}
private void AGIprintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
//Bitmap bmp = Properties.Resources.l2;
//Image newimage = bmp;
//e.Graphics.DrawImage(newimage, 50, 5);
Bitmap bmp1 = Properties.Resources.l1;
Image newimage1 = bmp1;
e.Graphics.DrawImage(newimage1, 690, 5);
//
e.Graphics.DrawString("NAME", new Font("Arial", 8, FontStyle.Bold), Brushes.Black, new Point(40, 970)); //NAME
e.Graphics.DrawString("ISSUE DATE", new Font("Arial", 8, FontStyle.Bold), Brushes.Black, new Point(300, 970)); //ISSUE DATE.NOW
e.Graphics.DrawString("SIGNATURE", new Font("Arial", 8, FontStyle.Bold), Brushes.Black, new Point(685, 970)); //SIGNATURE AREA
//
e.Graphics.DrawString(textBox18.Text, new Font("Arial", 8, FontStyle.Regular), Brushes.Black, new Point(40, 998));
e.Graphics.DrawString(""+ DateTime.Now, new Font("Arial", 8, FontStyle.Regular), Brushes.Black, new Point(310,998 ));
}
private void button2_Click(object sender, EventArgs e)
{
AGIprintDocument.Print();
}
}
}