Skip to Content
0
Former Member
Sep 08, 2009 at 02:38 PM

Crystal Report Embedded server 2008

23 Views

Hi SAP,

I have reports created in Crystal reports 2008 sp1 designer. Reports are created using stored procedures.Reports are called through .net application and placed at Crystal Report Embedded server 2008.If Reports are at local machine they work fine.If reports are at Crystal Report Embedded server 2008 it prompts for parameter and database credentials.

Here is my code

CrystalDecisions.CrystalReports.Engine.ReportDocument rd= new CrystalDecisions.CrystalReprots.Engine.ReportDocument();

String rptfilepath="ras://C:\Reports\EmbededRpt.rpt";

Rd.ReportAppServer="RasServer";

Rd.FileName= rptfilepath;

Rcd=rd.ReportClentDocument;

System.Data.Dataset ds = this.GetData();

Rd.SetDataSource(CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds));

CrystalReportViewer1.ReportSource=rcd.ReportSource;

Any response will be appreciated.

Thanks.