Click here to Skip to main content
13,408,530 members (43,749 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


8 bookmarked
Posted 9 Aug 2010

How to create a Crystal Reports report from a dataset

Rate this:
Please Sign up or sign in to vote.
Creating a Crystal Reports report from a dataset

First create a CrystalReportViewer and then CrystalReport. Create a dataset, and in the dataset, create a table using the table adapter tool. Add columns in the table. The content of the table must be same as the content that is retrieved. Now consider report viewer as rpviewer and report as rpt. Write the code below to bind the dataset with the crystal report (rpt).

Query = .....;
adapter.fill(datasetname,"table name of the dataset");
rpviewer.reportsource = rpt;


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


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, C# and other Microsoft Technologies.

You may also be interested in...


Comments and Discussions

QuestionSharing more links crystal reports Pin
heemanshubhalla1-Aug-14 10:31
memberheemanshubhalla1-Aug-14 10:31 
Questionhow to use crystal report step by step use Pin
sirisiri16-Mar-12 2:32
membersirisiri16-Mar-12 2:32 
Generalcan you show how to make multiple detail of report? Pin
vachzar4-Jul-11 20:58
membervachzar4-Jul-11 20:58 
GeneralAgain, What's new in it? Ain't it a standard way to do it? A... Pin
Sandeep Mewara8-Aug-10 4:18
mvpSandeep Mewara8-Aug-10 4:18 

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.180221.1 | Last Updated 28 Jun 2011
Article Copyright 2010 by John Sathish Tamilarasu
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid