C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to develope CrystalReport using Asp.Net2.0 with C#.Net


Posted Date: 03 May 2007      Total Responses: 1

Posted By: Latha       Member Level: Bronze     Points: 2


Hi, I actually i done crystal reports in windows apps but, i dont know how to
implement crystalreports in using Asp.net2.0 with C#.net.Can you plz help me how to implement crystalreports using Asp.net2.0 with C#.




Responses

Author: Alagappan.PL    03 May 2007Member Level: BronzeRating:     Points: 2
hi
I assume that u have a crystal report with the name Employee.rpt

in the web wage drag and drop the crystal report viewer tool
and add the crystal report file to the project (Employee.rpt)
and make use of the following code

public class WebForm1 : System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer ReportViewer1;

public Employee emp = new Employee();


private void Page_Load(object sender, System.EventArgs e)
{
emp.SetDatabaseLogon("username","Password"); //Report to login to db
ReportViewer1.ReportSource = emp ;
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion


Post Reply
You must Sign In to post a response.
Next : Urgent Please?
Previous : How to write the c# code inside the JavaScript?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

fax server

Contact Us    Privacy Policy    Terms Of Use