Crystal Report in ASP.NET

Using Crystal Report in ASP.NET is not a big deal. If you have Report (.rpt) File ready, you can use it in your Web Page straight way.

# First of all, add a CrystalReportViewer to your Page.
# In the Page_Init Event of your Page, attach your Report (.rpt) File and set Data Source for it.
# Finally, set CrystalReportViewer Report Source.

Have a close look at the following code snippet, I hope you will get Crystal Report working on your Web Page.

ReportDocument reportDocumentObject = new ReportDocument();
InwardDetailsCrystalReportViewer.Visible = true;
InwardDetailsCrystalReportViewer.ReportSource = reportDocumentObject;

A Rahim Khan

  1. good job!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: