Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. DGVPrinter printer = new DGVPrinter();
  2. printer.Title = "Reporte de Personal";
  3. printer.SubTitle = string.Format("Fecha:{0} ", DateTime.Now.Date.ToString("dd/MM/yyyy"));
  4.  
  5. printer.SubTitleFormatFlags = StringFormatFlags.LineLimit;
  6. printer.PageNumberInHeader = false;
  7. printer.PorportionalColumns = true;
  8. printer.ColumnWidth = DGVPrinter.ColumnWidthSetting.Porportional;
  9. printer.HeaderCellAlignment = StringAlignment.Near;
  10. printer.Footer = "Informe de Personal x FP";
  11. printer.FooterSpacing = 15;
  12. printer.printDocument.DefaultPageSettings.Landscape = true;
  13.  
  14. printer.RowHeight = DGVPrinter.RowHeightSetting.CellHeight;
  15.  
  16.  
  17. printer.PrintDataGridView(dataGridViewEmp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement