Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello friends,
using datagrid view for reporting in vb.net 2008 project .... want to print data from the data grid view using print dialog...

can any one suggest some inputs how to print data from datagrid view???







thanks :)
Posted

What have you tried ? Standard printing code should handle this, you're just printing what's on screen, right ?
 
Share this answer
 
I suggest that you search for articles on GDI+, in particular methods such as DrawString, DrawRectangle etc. You would also need to read articles on the PrintDocument class and PrintPreview, if you want to create your own reports from scratch. Getting the Data from a DataGridView is no different than getting your Data from anyplace else.

Happy Coding
 
Share this answer
 
a simple google search or a search on this site will provide a wealth of information on how to do just that. If you don't understand how to do a simple search like that, then you're in the wrong business. If you're just not sure what keywords to use, then you're in the wrong business.

We're not in the business of doing research for someone. If you want that, hire a research assistant.

If you have specific questions about some code, or if you are having issues implementing some code, then feel free to ask those questions and we will gladly try to assist you. But when you ask a question that is so basic that the top result in google can give you all of the information you would need, we don't feel inclined to help.
 
Share this answer
 
@William Winner


If you really have programming guts just answer this , there is code too.. http://www.codeproject.com/Questions/72345/How-to-create-crystal-report-in-vb-net-using-sql-s.aspx[^]
 
Share this answer
 
Comments
William Winner 17-May-10 18:26pm    
ah...poor baby...why would I give you code for free?
William Winner 17-May-10 18:30pm    
Oh...and by the way, I only happened to come back here because I was curious why my reputation had been bumped up so high lately and saw that someone down-voted an answer. How do you expect to learn how to code if you can't even figure out a simple website like this? Posting an answer only goes back to you...that's what this nice like "Add Comment" button is for. I know...there's a lot on this page and it can be overwhelming to small children.
Mac McCall 5-Nov-21 19:45pm    
A**hole!
Hey all thanks for Help .... it was usefull & I got the solution how to print data from datagrid...





and by the way


@William Winner If you dont know solution buddy, you can slip this question rather than writing sh*t :X anyway thanks for shitt u have written....
 
Share this answer
 
Comments
William Winner 17-May-10 18:27pm    
Again, I actually do know the solution, but I'm not going to just give you code for free. Show that you know how to use the internet and people will be willing to help. It's so sad when people can't even type "www.google.com". It's ok, your mom will be along shortly to change that diaper.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900