private void MyPrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { bool more = MyDataGridViewPrinter.DrawDataGridView(e.Graphics); if (more == true) e.HasMorePages = true; }
// The PrintPage action for the PrintDocument control private void printDoc_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { bool more = myPrintDataGrid.DrawDataGridView(e.Graphics); if (more == true) { e.HasMorePages = true; } }
private void ImprimirDocumento_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { bool more = MyDataGridViewPrinter.DrawDataGridView(e.Graphics, false); if (more == true) { e.HasMorePages = true; } }
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { bool more = MyDataGridViewPrinter.DrawDataGridView(e.Graphics); if (more) { e.HasMorePages = true; } }
} //public void Genera_File_FP_OMP private void pD1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { //PaintEventArgs myPaintArgs = new PaintEventArgs(e.Graphics, new Rectangle(new Point(0, 0), this.PreferredSize)); //this.InvokePaint(dGv1, myPaintArgs); bool more = MyDataGridViewPrinter.DrawDataGridView(e.Graphics); if (more == true) { e.HasMorePages = true; } }
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { bool more = MyDataGridViewPrinter.DrawDataGridView(e.Graphics); //bool more2 = MyDataGridViewPrinter2.DrawDataGridView(e.Graphics); if (more == true) { e.HasMorePages = true; } //else if (more2 == true) // e.HasMorePages = false; }
private void printDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { try { bool more = print.DrawDataGridView(e.Graphics); if (more == true) { e.HasMorePages = true; } } catch (Exception ex) { LogHelper.LogError(ex); } }
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { //Bitmap bm = new Bitmap(this.dataGridView1.Width, this.dataGridView1.Height); //this.dataGridView1.DrawToBitmap(bm, new Rectangle(0, 0, this.dataGridView1.Width, this.dataGridView1.Height)); //e.Graphics.DrawImage(bm, 0, 0); bool more = MyDataGridViewPrinter.DrawDataGridView(e.Graphics); if (more == true) { e.HasMorePages = true; } }
public void PrintDataGrid(Control inControl, int inPageAdjX, int inPageAdjY) { DataGridView curControl = (System.Windows.Forms.DataGridView)inControl; bool curCenterOnPage = false; int curPageHeight = myPageHeight; int curPageWidth = myPageWidth; int curTopMargin = curControl.Location.Y + inPageAdjY; int curBottomMargin = myBottomMargin; int curLeftMargin = myLeftMargin; int curRightMargin = myRightMargin; /* * DataGridViewPrinter myPrintDataGrid = new DataGridViewPrinter( curControl, * curCenterOnPage, curPageHeight, curPageWidth, * curTopMargin, curBottomMargin, curLeftMargin, curRightMargin * ); */ DataGridViewPrinter myPrintDataGrid = new DataGridViewPrinter(curControl, myPrintDoc, curCenterOnPage, curPageHeight, curPageWidth, curTopMargin, curBottomMargin, curLeftMargin, curRightMargin ); myPrintDataGrid.DrawDataGridView(myGraphicControl); }
public void PrintDataGrid( Control inControl, int inPageAdjX, int inPageAdjY ) { DataGridView curControl = (System.Windows.Forms.DataGridView)inControl; bool curCenterOnPage = false; int curPageHeight = myPageHeight; int curPageWidth = myPageWidth; int curTopMargin = curControl.Location.Y + inPageAdjY; int curBottomMargin = myBottomMargin; int curLeftMargin = myLeftMargin; int curRightMargin = myRightMargin; /* DataGridViewPrinter myPrintDataGrid = new DataGridViewPrinter( curControl, curCenterOnPage, curPageHeight, curPageWidth, curTopMargin, curBottomMargin, curLeftMargin, curRightMargin ); */ DataGridViewPrinter myPrintDataGrid = new DataGridViewPrinter( curControl, myPrintDoc, curCenterOnPage, curPageHeight, curPageWidth, curTopMargin, curBottomMargin, curLeftMargin, curRightMargin ); myPrintDataGrid.DrawDataGridView( myGraphicControl ); }
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { e.HasMorePages = _dataGridViewPrinter.DrawDataGridView(e.Graphics); }