![]() |
VB.Net 2008 Print DataGridView (Text Wrap top header column and lock in width)
I’m using VB.Net 2008 application program.
I’m using DataGridView. I have a Print option where i need to print the DataGridView. I’m using this code for Printing and for Print Preview. Code:
Dim MyDataGridViewPrinter As DataGridViewPrinterAttached the class i'm using for print. I have 10 fields showing in datagridview. As the last 5 columns header is long, the datagridview is not fitting inside 1 page (not showing all 10 fields in one single page). But is there a way i can "Text Wrap" the top header column and lock in the width, then it should print across one page perfectly. I searched a lot, but I couldn’t find it. If you know how i can "Text Wrap" the top header column and lock in the width to print across one page, please help me. If you can provide an example, that will be so helpful. Thanks in advance. |
Is there a way i can print this in Landscape format, so entire columns will be fit in one page?
this is the code used in class for checking Landscape. but when i try both, it shows same page format. Code:
'Claculating the PageWidth and the PageHeight.Is it possible? If you know how to print this in Landscape format, please help me. if you can provide an example, that will be so helpful. Thanks in advance. |
| All times are GMT -4. The time now is 07:54 AM. |
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.