Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 16th, 2006, 7:23 AM   #1
biran
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 biran is on a distinguished road
print to datagrid(urgent)

Hello all,
i am getting trouble again.
im using windows form with datagrid.
my trouble is i want to print this datagrid text but i don't have idia.
please help me with simple code.

biran
biran is offline   Reply With Quote
Old May 16th, 2006, 4:39 PM   #2
Pedja
Programmer
 
Join Date: Nov 2005
Location: Belgrade, Serbia & Montenegro
Posts: 31
Rep Power: 0 Pedja is on a distinguished road
Send a message via ICQ to Pedja Send a message via MSN to Pedja Send a message via Yahoo to Pedja
You could use a report (.rdlc file). Bind it with data source by dragging and dropping data source items on it. You can format it and group it as you like. Display it using a ReportViewer.
Here is some helpful stuff: http://www.gotreportviewer.com/.
I hope that helps.
Pedja is offline   Reply With Quote
Old May 16th, 2006, 10:50 PM   #3
biran
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 biran is on a distinguished road
Hi pedja
thank you for help.
yeh, i did that but without knowladge im confused.
i already have datagrid and im displaying there some data. i want to print these data.
if you have more idia please give me suggestion.
thanks
biran is offline   Reply With Quote
Old May 17th, 2006, 1:45 AM   #4
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
I've never used a datagrid, or done any printing, but I figure printing is fairly easy, especialy with the .Net framework doing it Google has plenty of articles on printing:

http://www.google.ca/search?hl=en&q=...G=Search&meta=

THis would probably be the most use to you. It's how to print a datagrid. CAn't get any closer :p

http://www.c-sharpcorner.com/Graphic...dPrinterMG.asp

http://www.google.ca/search?hl=en&q=...G=Search&meta=

Is this what you were looking for? Hope it helps
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:34 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC