Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have Visoual Studio 2010 and I am Using VB.Net envoroment. I am trying to print my datagrid but no matter what i do it seems to print the datagrid over two pages. I am using the example code contained in the pdf.
Posted
Comments
koolprasad2003 18-Jan-12 7:17am    
please elaborate it
Post your code and describe it details what you want to do.
There is no pdf here.
Member 8567901 18-Jan-12 8:55am    
Dim Printer = New DGVPrinter
Printer.Title = "DataGridView Report"
Printer.SubTitle = "An Easy to Use DataGridView Printing Object"
Printer.SubTitleFormatFlags = StringFormatFlags.LineLimit Or StringFormatFlags.NoClip
Printer.PageNumbers = True
Printer.PageNumberInHeader = False
Printer.ColumnWidth = DGVPrinter.ColumnWidthSetting.Porportional
Printer.RowHeight = DGVPrinter.RowHeightSetting.CellHeight
Printer.HeaderCellAlignment = StringAlignment.Near
Printer.PageSettings.Landscape = True
Printer.Footer = "Footer"
Printer.FooterSpacing = 15
Printer.PrintDataGridView(Me.DVDTABLEDataGridView)

when my records exceed one page some columbs are printed on one page and some on another so instead of having 6 pages i get 12.

Hope this helps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900