473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How can i print the contents of a datagrid?

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
11 3433
lotus18
866 512MB
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
1,977 1GB
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
866 512MB
Hi michael8027

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


Rey Sean
Nov 30 '07 #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
866 512MB
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
jaz215
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
[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
freedom
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
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
866 512MB
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
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

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

Similar topics

2
by: MJay | last post by:
can someone provide me some codes that can print out a datagrid after i have loaded the datagrid with records in a DataTable?
11
by: Junkguy | last post by:
I need some help programmatically causing a row in a DataGrid to "flush" its contents to its bound data (in Visual Studio 6 using Windows Forms with C#). My issue is I want to send an update to...
1
by: Paresh | last post by:
Hi I need to Print asp:datagrid with formatting, which will avoid my writing of crystal reports and can directly print with click of a button. I do not just want to print the current page, I...
6
by: Al Wilkerson | last post by:
Hi, Does anyone know how to display the contents of a DataGrid on another aspx page. I have a aspx page that when the user clicks on a link button the database is queried and I want the results...
0
by: MrMike | last post by:
Hi. I have an asp:ImageButton which appears when a datagrid row is placed in Edit mode. The button has it's own click event which fires when the button is clicked. Within the button's click...
0
by: Paco Ferre | last post by:
Hello, I founded some examples of WebControl printing in internet and tryed to have them working for a DataGrid, something not very complicated. I have a page, Page1.aspx with a DataGrid...
7
by: Evan Camilleri | last post by:
I have a datagrid with headers. I managed to 'freeze' the headers OK and then one can scroll to see contents. I would like to be able to print this list by re-prinitng the headers on each page....
9
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
0
by: Arch Stanton | last post by:
I'm writing the contents of my datagrid to an Excel spreadsheet using the following code: Sub WriteToExcel(Sender as Object, E as EventArgs) 'Export the contents of the current datagrid to Excel...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.