How to use Crystal Reports in ASP .NET

No.of Views664
Bookmarked0 times
Downloads 
Votes0
By  shanaj   On  16 Feb 2010 03:02:21
Tag : ASP.NET , How to
How to use Crystal Reports in ASP .NET
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

 In this code snippet , give idea to load crystal report in ASP.NET. 

Code Snippets-VB.NET

 

//First import this namespace

Imports CrystalDecisions.CrystalReports.Engine

Dim ds as new Dataset
'Fill the dataset using Data adapter


'Here you have to write the code for populating dataset with DataAdapter.

Dim rep As New ReportDocument
rep.Load(Server.MapPath("CrystalReport1.rpt"))

rep.setDatasource(ds)

CrystalReportViewer1.ReportSource = rep

 

Thank you

 
Sign Up to vote for this article
 
About Author
 
shanaj
Occupation-Not Provided
Company-Not Provided
Member Type-Junior
Location-Not Provided
Joined date-22 Oct 2009
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top