Please Direct Me To How Can I Print A The Contents Of Datagrid Which I Have Selected From A Combobox I Wanna To Print Only Contents Not Form Plesase Send Ways How To With Code Itself
How can i print the contents of a datagrid?
Collapse
X
-
Tags: None
-
Hi michael8027Originally posted by michael8027Please Direct Me To How Can I Print A The Contents Of Datagrid Which I Have Selected From A Combobox I Wanna To Print Only Contents Not Form Plesase Send Ways How To With Code Itself
Show us much more details of what have you done so far : )
Rey Sean -
Originally posted by michael8027Please Direct Me To How Can I Print A The Contents Of Datagrid Which I Have Selected From A Combobox I Wanna To Print Only Contents Not Form Plesase Send Ways How To With Code Itself- open a text file for output
- For loop
- use Print statement to print items
- next
- Close text file.
Comment
-
acutally i working in a triaing management sysytem in my project i want get aprint out from datagrid code from visual basic 6.0 can u help me outComment
-
So you mean a hardcopy?Originally posted by michael8027acutally i working in a triaing management sysytem in my project i want get aprint out from datagrid code from visual basic 6.0 can u help me out
Here's the query
[code=vb]
"Select * From <TableName> Where <FieldName>=' " & Combo1.Text & "'"
[/code]
Are you using a DataReport (vb) or CR?
Rey SeanComment
-
yup if you want to print a hardcopy, use the data reports in vb6 we can show you how, if that's what you really wantOriginally posted by lotus18So you mean a hardcopy?
Here's the query
[code=vb]
"Select * From <TableName> Where <FieldName>=' " & Combo1.Text & "'"
[/code]
Are you using a DataReport (vb) or CR?
Rey SeanComment
-
[i have made a table// i can retrieve data from the table /and view it in datagrid which will fulfill my crtiteria now i want the contents of the data presaent in the datagrid for printing is this possible or else another way to print the dataComment
-
Hi,
What type of contents/data are printing here? Say if your would like to print data which will be based on certain date, ID number, Names etc...you can use a combo box here to get there info..then use a select statement to get the value depending on your input.
Cheers!Comment
-
Comment
-
i also Want to print whole data grid value what is code for that please help me out on this.........
thanks for your helpComment
Comment