PC Review


Reply
Thread Tools Rate Thread

Crystal reports in C#.net

 
 
radha
Guest
Posts: n/a
 
      4th Apr 2006
Hi

I am a beginner, trying to open a crystal report using crytal report
viewer in my webform. But nothing happens when I open the page. I am
not sure where I went wrong. This is my code in page load. Please
someone help me


CrystalReportViewer1 = new
CrystalDecisions.Web.CrystalReportViewer();
String reportPath = @"C:\Program Files\Crystal
Decisions\Crystal Reports 10\Samples\En\Reports\General Business\World
Sales Report.rpt";
StockObjectsReport = new ReportDocument();
StockObjectsReport.Load(reportPath);
CrystalReportViewer1.ReportSource = StockObjectsReport;

Thanks

 
Reply With Quote
 
 
 
 
Christopher Reed
Guest
Posts: n/a
 
      4th Apr 2006
After your ReportSource, you need the following:

CrystalReportViewer1.DataBind();

--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"radha" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> I am a beginner, trying to open a crystal report using crytal report
> viewer in my webform. But nothing happens when I open the page. I am
> not sure where I went wrong. This is my code in page load. Please
> someone help me
>
>
> CrystalReportViewer1 = new
> CrystalDecisions.Web.CrystalReportViewer();
> String reportPath = @"C:\Program Files\Crystal
> Decisions\Crystal Reports 10\Samples\En\Reports\General Business\World
> Sales Report.rpt";
> StockObjectsReport = new ReportDocument();
> StockObjectsReport.Load(reportPath);
> CrystalReportViewer1.ReportSource = StockObjectsReport;
>
> Thanks
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports Does Not Display BLOB Field Correctly in IBlobField Control Using Crystal Reports for VS.NET 2003 Jeff Microsoft Dot NET 0 4th May 2006 10:21 PM
First time crystal report user - How do i create a crystal reports from asp.net web form? Learner Microsoft ASP .NET 1 11th Jan 2006 09:20 PM
Calling Crystal Reports in ASP.NET using the rptserver.asp given by Crystal Reports Peri Microsoft ASP .NET 1 21st Jul 2005 02:56 PM
Calling Crystal Reports in ASP.NET using the rptserver.asp given by Crystal Reports Peri Microsoft VB .NET 1 21st Jul 2005 02:56 PM
Crystal Reports - Setting up a one-to-many relationship in a crystal report Stu Microsoft VB .NET 2 31st Jan 2005 08:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:53 AM.