0

I need to print some data form my DataTable. I always use PrintDocument class for printing but now i have some database data that would be easier to print using reporting. I used to work in VB6 and used it's datareporting and it is very easy but I can't figure out how to use it in c#.

Also I'm creating application for .net 2.0.

Cœur
  • 37,241
  • 25
  • 195
  • 267
user2081328
  • 159
  • 3
  • 15

1 Answers1

0

You can use RDLC with ReportViewer control.

http://msdn.microsoft.com/en-us/library/ms252067.aspx

Here is a nice tutorial for using RDLC.

A Tutorial For Microsoft Report In WinForm Applications

Community
  • 1
  • 1
Morbia
  • 4,144
  • 3
  • 21
  • 13
  • It's good but it only shows how to print all data from table? How to find data using certain criterion. – user2081328 Aug 01 '13 at 13:51
  • You can create DataView from DataTable and apply RowFilter. see http://msdn.microsoft.com/en-us/library/system.data.dataview.rowfilter.aspx – Morbia Aug 09 '13 at 16:03