Printing DataGridView in VB 2008
Hi
I am going round and round the DataGridView trying to print the Datat it contains.
I maneged to print the row Numbers, the string name, tru values , false values... but not what i need.
Code:
PrivateSub PrintDocument1_PrintPage(ByVal sender AsObject, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage ' create a new font to print with...Dim fnt AsNew Font("Arial", 10, FontStyle.Regular, GraphicsUnit.Point)' print the text from the text box...e.Graphics.DrawString(DataGridViewSearch.Rows.Coun t, fnt, Brushes.Black, 0, 0)' end printing by indicating there are no more pages...e.HasMorePages = FalseEndSub
as you can see here DataGridViewSearch.Rows.Count is printing the number of rows,
Is there another property that prints the data...
Or Can i disply the same data in RichTextBox,?
__________________
bx
|