«

Aug 02

crystal report in asp.net

Hi,

I this post i will explain how to create a simple crystal report.

1.Open VS studio
2.open a new window application.
3.Drag and drop a Crystal report viewer from the tools( under Reporting).
4.Place a button in the form.Crystal Report
5.Double click on button.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;namespace nn
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}private void button1_Click(object sender, EventArgs e)
{
ReportDocument rod = new ReportDocument();
rod.Load(“D:\\Naseer\\st\\nn\\CrystalReport1.rpt”);
crystalReportViewer1.ReportSource = rod;
crystalReportViewer1.Refresh();
}
}
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>