Click here to Skip to main content
Click here to Skip to main content

Tagged as

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");
rpt.setdatasource(datasetname);
rpviewer.reportsource = rpt;
rpviewer.refresh();

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.

Comments and Discussions

 
QuestionSharing more links crystal reports Pinmemberheemanshubhalla1-Aug-14 10:31 
Questionhow to use crystal report step by step use asp.net Pinmembersirisiri16-Mar-12 2:32 
Generalcan you show how to make multiple detail of report? Pinmembervachzar4-Jul-11 20:58 
GeneralAgain, What's new in it? Ain't it a standard way to do it? A... PinmvpSandeep Mewara8-Aug-10 4:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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.150129.1 | Last Updated 28 Jun 2011
Article Copyright 2010 by John Sathish Tamilarasu
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid