By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,642 Members | 2,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,642 IT Pros & Developers. It's quick & easy.

How can i print the contents of a datagrid?

P: 4
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
Nov 30 '07 #1
Share this Question
Share on Google+
11 Replies


lotus18
100+
P: 866
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
Hi michael8027

Show us much more details of what have you done so far : )

Rey Sean
Nov 30 '07 #2

hariharanmca
100+
P: 1,977
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
  • open a text file for output
  • For loop
  • use Print statement to print items
  • next
  • Close text file.
Nov 30 '07 #3

lotus18
100+
P: 866
Hi michael8027

Print? A hardcopy or printing it on a textfile as posted by hariharanmca?


Rey Sean
Nov 30 '07 #4

P: 4
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 out
Nov 30 '07 #5

lotus18
100+
P: 866
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 out
So you mean a hardcopy?
Here's the query

Expand|Select|Wrap|Line Numbers
  1.      "Select * From <TableName> Where <FieldName>='" & Combo1.Text & "'"
  2.  
Are you using a DataReport (vb) or CR?

Rey Sean
Nov 30 '07 #6

P: 55
So you mean a hardcopy?
Here's the query

Expand|Select|Wrap|Line Numbers
  1.      "Select * From <TableName> Where <FieldName>='" & Combo1.Text & "'"
  2.  
Are you using a DataReport (vb) or CR?

Rey Sean
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 want
Nov 30 '07 #7

P: 4
[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 data
Dec 1 '07 #8

P: 16
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!
Dec 1 '07 #9

P: 4
i got all out put in selected datagrid but i want how to write code in VB get print in datgrid
Dec 1 '07 #10

lotus18
100+
P: 866
i got all out put in selected datagrid but i want how to write code in VB get print in datgrid
Can you show us your codes so that we can make a solution.

Rey Sean
Dec 2 '07 #11

P: 1
i also Want to print whole data grid value what is code for that please help me out on this.........

thanks for your help
Dec 9 '11 #12

Post your reply

Sign in to post your reply or Sign up for a free account.