|
-
Jun 30th, 2003, 02:09 AM
#1
Thread Starter
Hyperactive Member
how to print the content of a datagrid?
Hello Everybody,
How can i print the contents of a datagrid?
I need to print all the columns - because not all the columns are shown on the screen.
Thank you all in advance,
ERAN
a new proud father
Eran Fox
ASSEMBLER,C,C++,VB6,SQL...
-
Jun 30th, 2003, 07:23 AM
#2
Thread Starter
Hyperactive Member
Reply to myself
Hello all,
I tried to print the Adodc1.Recordset insted of the datagrid contents,
BUT!!!, If txtDataGrid1 string gets more then 9 records it cannot be printed on the printer:
Dim iRow As Integer
Dim iCol As Integer
Dim txtDataGrid1 As String
txtDataGrid1 = ""
For iRow = 0 To Me.Adodc1.Recordset.RecordCount - 1
Me.DataGrid1.Row = iRow
For iCol = 0 To 21
Me.DataGrid1.Col = iCol
txtDataGrid1 = txtDataGrid1 & Me.DataGrid1.Text & " "
Next iCol
txtDataGrid1 = txtDataGrid1 & vbCrLf
Next iRow
Printer.Orientation = 2
Printer.Print txtDataGrid1
Printer.EndDoc
if you know how to print the datagrid contents please tell me,
or if you know some activeX freeware...
Thank you all in advance,
ERAN
Eran Fox
ASSEMBLER,C,C++,VB6,SQL...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|