Click here to Skip to main content
12,557,291 members (48,594 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


8 bookmarked

How to create a Crystal Reports report from a dataset

, 28 Jun 2011 CPOL
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 9:31
memberheemanshubhalla1-Aug-14 9:31 
Questionhow to use crystal report step by step use Pin
sirisiri16-Mar-12 1:32
membersirisiri16-Mar-12 1:32 
Generalcan you show how to make multiple detail of report? Pin
vachzar4-Jul-11 19:58
membervachzar4-Jul-11 19:58 
GeneralAgain, What's new in it? Ain't it a standard way to do it? A... Pin
Sandeep Mewara8-Aug-10 3:18
mvpSandeep Mewara8-Aug-10 3: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.

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