Raporda alt toplamı nasıl alabiliriz.« Diğer sorulara git

public int SatirSayisi = 0; private void pdyazici_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs ffff) { try { Font myFont = new Font("Calibri", 7); SolidBrush sbrush = new SolidBrush(Color.Black); Pen myPen = new Pen(Color.Black); ffff.Graphics.DrawString("Düzenlenme Tarihi: " + DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString(), myFont, sbrush, 550, 25); // ffff.Graphics.DrawLine(myPen, 35, 45, 770, 35); // Çizgi çizdik... 1. Kalem, 2. X, 3. Y Koordinatı, 4. Uzunluk, 5. BitişX myFont = new Font("Calibri", 13, FontStyle.Bold); ffff.Graphics.DrawString(" Sayın : " + lblmstad.Text + " Hesap Extresidir...", myFont, sbrush, 50, 40); // ffff.Graphics.DrawLine(myPen, 45, 95, 770, 45); //çizgi çizdik. myFont = new Font("Calibri", 8, FontStyle.Bold); ffff.Graphics.DrawString("işlem Türü", myFont, sbrush, 50, 70); ffff.Graphics.DrawString("Tarih", myFont, sbrush, 110, 70); ffff.Graphics.DrawString("Açıklama", myFont, sbrush, 210, 70); ffff.Graphics.DrawString("Miktar", myFont, sbrush, 450, 70); ffff.Graphics.DrawString("Birim", myFont, sbrush, 520, 70); ffff.Graphics.DrawString("Fiyatı", myFont, sbrush, 570, 70); ffff.Graphics.DrawString("İsk", myFont, sbrush, 620, 70); ffff.Graphics.DrawString("Kdv", myFont, sbrush, 670, 70); ffff.Graphics.DrawString("Borc", myFont, sbrush, 720, 70); ffff.Graphics.DrawLine(myPen, 50, 90, 770, 90); int y = 100; myFont = new Font("Calibri", 8); int i = 0; while (i 1000) { ffff.Graphics.DrawString("(Devamı -->)", myFont, sbrush, 700, y + 50); y = 50; break; } } if (i < SatirSayisi) { ffff.HasMorePages = true; } else { ffff.HasMorePages = false; i = 0; } StringFormat myStringFormat = new StringFormat(); myStringFormat.Alignment = StringAlignment.Far; } catch { }
Cevaplayan akd27
Soran 24 Ocak 2016 17:11