Click here to Skip to main content
12,628,996 members (33,177 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

9.8K views
1 bookmarked
Posted

How to create a microsoft report from the dataset

, 9 Aug 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
First create a reportviewer and then report.
create a dataset,in dataset create a table using table adapter tool.
add columns in the table according to the need.the content of the table must be equal to the content that
is retrieved.now consider report viewer as rpviewer and report as rpt,write this code to bind the dataset
with the Msreport(rpt).Find the *bindingsource which is present in reportviewer(below).

:-D Query = .....;
adapter.fill(datasetname,"table name of the dataset");
*bindingsourcename.datasource = datasetname;:cool:It works Good!!

License

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

Share

About the Author

John Sathish Tamilarasu
Software Developer (Senior) Sundaram Infotech
India India
I am a Software Specialist.Worked & Working in Various IT Based industries.I have good Exposure in ASP.net, C# and other Microsoft Technologies.

You may also be interested in...

Pro
Pro

Comments and Discussions

 
QuestionNeeds your assistance to get this code on report viewer to work Pin
solokupo25-Sep-13 2:52
membersolokupo25-Sep-13 2:52 
GeneralReason for my vote of 1 NO Pin
yusufhermanto9-Apr-11 7:47
memberyusufhermanto9-Apr-11 7:47 
GeneralWhat's new in it? Ain't it a standard way to do it? Any tip ... Pin
Sandeep Mewara8-Aug-10 4:17
mvpSandeep Mewara8-Aug-10 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161205.3 | Last Updated 9 Aug 2010
Article Copyright 2010 by John Sathish Tamilarasu
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid