private void printDocumentOtoparktakiAraclar_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Bitmap bmp = Properties.Resources.arac; Image resim = bmp; e.Graphics.DrawImage(resim, 25, 25, resim.Width / 8, resim.Height / 8); e.Graphics.DrawString($" Tarih: {DateTime.Now}", new Font("Arial", 10, FontStyle.Bold), Brushes.Black, new Point(25, 100)); e.Graphics.DrawLine(new Pen(Color.Blue, 2), new Point(25, 150), new Point(800, 150)); e.Graphics.DrawString($"Aracın Plakası ", new Font("Arial", 10, FontStyle.Bold), Brushes.Black, new Point(50, 200)); e.Graphics.DrawString($"Giriş Saati", new Font("Arial", 10, FontStyle.Bold), Brushes.Black, new Point(200, 200)); e.Graphics.DrawLine(new Pen(Color.Blue, 2), new Point(25, 225), new Point(800, 225)); Point konumplaka = new Point(50, 235); Point konumgirissaat = new Point(200, 235); AracCikisiBLL ab = new AracCikisiBLL(); Result <List <GirisCikisKayitlariModel> > abList = ab.selectOtoparktakiAraclar(); foreach (var item in abList.TransactionResult) { if (item != null) { konumplaka = new Point(konumplaka.X, konumplaka.Y + 25); e.Graphics.DrawString($"{item.ARAC_PLAKA}", new Font("Arial", 10, FontStyle.Regular), Brushes.Black, konumplaka); konumgirissaat = new Point(konumgirissaat.X, konumgirissaat.Y + 25); e.Graphics.DrawString($"{item.GIRIS_TARIHI}", new Font("Arial", 10, FontStyle.Regular), Brushes.Black, konumgirissaat); } } }