Crystal Report using ASP.NET 2005

Crystal Report using ASP.NET 2005

Page 1 of 1

3 Replies - 9240 Views - Last Post: 21 November 2008 - 08:02 AM Rate Topic: -----

#1 bksanand777  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-November 08

Crystal Report using ASP.NET 2005

Post icon  Posted 19 November 2008 - 09:31 PM

Hi,
We are trying to create a crystal report using ASP.NET 2005 and SQL Server 2000.
When do we create a Dataset, we are told to create a connection.

Kindly help us for creating Crystal Report using ASP.NET 2005 and SQL Server 2000.

Anand
Is This A Good Question/Topic? 0
  • +

Replies To: Crystal Report using ASP.NET 2005

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Crystal Report using ASP.NET 2005

Posted 19 November 2008 - 10:06 PM

What have you tried so far?

[rules][/rules]
Was This Post Helpful? 1

#3 luckyfeb17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 20-November 08

Re: Crystal Report using ASP.NET 2005

Posted 21 November 2008 - 07:53 AM

View Postbksanand777, on 19 Nov, 2008 - 08:31 PM, said:

Hi,
We are trying to create a crystal report using ASP.NET 2005 and SQL Server 2000.
When do we create a Dataset, we are told to create a connection.

Kindly help us for creating Crystal Report using ASP.NET 2005 and SQL Server 2000.

Anand

Creation of data set is traditional way , that u create a data adapter and then use the fill method ,
But u have to use crystal report source and crystal report viewer .

DataSet ds = new DataSet();
da.Fill(ds, "table");

// ReportDocument report = new ReportDocument();
report.Load(Server.MapPath(@"report.rpt"));
// report.Load(path);

report.SetDatabaseLogon(c, a, d, b, true);
//report.SetDatabaseLogon("database", "psw");
report.SetDataSource(ds);
In this way u can bind , refer the code ...
Was This Post Helpful? 0
  • +
  • -

#4 luckyfeb17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 20-November 08

Re: Crystal Report using ASP.NET 2005

Posted 21 November 2008 - 08:02 AM

View Postbksanand777, on 19 Nov, 2008 - 08:31 PM, said:

Hi,
We are trying to create a crystal report using ASP.NET 2005 and SQL Server 2000.
When do we create a Dataset, we are told to create a connection.

Kindly help us for creating Crystal Report using ASP.NET 2005 and SQL Server 2000.

Anand

Creation of data set is traditional way , that u create a data adapter and then use the fill method ,
But u have to use crystal report source and crystal report viewer .

DataSet ds = new DataSet();
da.Fill(ds, "table");

// ReportDocument report = new ReportDocument();
report.Load(Server.MapPath(@"report.rpt"));
// report.Load(path);

report.SetDatabaseLogon(c, a, d, b, true);
//report.SetDatabaseLogon("database", "psw");
report.SetDataSource(ds);
In this way u can bind , refer the code ...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1