C# dataGridView print without crystal report using DGVPrinter easy way

Описание к видео C# dataGridView print without crystal report using DGVPrinter easy way

#datagridview #print_datagridview #dgvprinter #crystal_report #ingenious #csharp

C# dataGridview print in easy way using DGVPrinter. No need to work with crystal report. It's take few seconds.

Follow this link to download DGVPrinter file :
http://blog.ingenious.lk/pages/articl...

Code :

DGVPrinter printer = new DGVPrinter();
printer.Title = "My Report"; //give your report name
printer.SubTitleFormatFlags = StringFormatFlags.LineLimit | StringFormatFlags.NoClip;
printer.PageNumbers = true; // if you need page numbers you can keep this as true other wise false
printer.PageNumberInHeader = false;
printer.PorportionalColumns = true;
printer.HeaderCellAlignment = StringAlignment.Near;
printer.Footer = "footer"; //this is the footer
printer.FooterSpacing = 15;
printer.printDocument.DefaultPageSettings.Landscape = true;
printer.PrintDataGridView(dataGridView1);


Thank you for watching

Please subscribe my channel
Drop your comment, like and don't forget to share.

Thank You!...

Комментарии

Информация по комментариям в разработке