Currently I managed to display my data inside a datagrid control. But i want to create a button control for a print function to enable user to print the datagrid content. Any idea?

You can use a crystal report, if you do you can select the table's from youre database that you want to print, you have to search and try a little but it wil work.

I think he is more interested in printing from the datagrid directly with a code instead of using crystal report.

Currently I am looking for the same code. I have tried Form1.PrintForm

but this didn't work. I think we need to use the print document and bind data to it.

Regards

jay

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.