The report you requested requires further information

RAS XI R2 - VS 2005 - Unembedded report

I'm getting this error just using simple report binding with the ReportClientDocument object. Same code works fine in VS2003 RAS XI.

My code is very similar to example given by Crystal below. If I check TestConnectivity, it returns false. All connection information is contained within the report. I can open up the report in Crystal PRO on the same machine and Preview without problem. Any help would be greatly appreciated.

Thanks,

Kevin

private void OpenSampleReport_unmanagedRAS()
{
string sampleReportPath = @"C:\Program Files\Business Objects\Crystal Reports 11\Samples\en\Reports\General Business\World Sales Report.rpt";
object path = (object)sampleReportPath;

ReportClientDocument rcd = new ReportClientDocumentClass();
rcd.Open(ref path, 1);
crystalReportViewer.ReportSource = rcd;
}



Answer this question

The report you requested requires further information

  • Arunachalam

    If you are using c#

    -----------------------------

    Previous code

    --------------------------

    DataSet ds = new DataSet();

    ds = sWG.RetrieveforSixWeekSchedule(categoryId, fromDate, toDate, _startTime, _endTime);

    sixRptED.SetDataSource(ds);

    SixWeekScheduleEDRptViewer.ReportSource = sixRptED;

    new code

    ------------------

    We have given only (ds.Tables[0] )

    RetrieveforSixWeekSchedule is a table gate way for accessing the Stored procedure.You can write the coonection string instead of this

    sixRptED is inheriting the report calss file

    DataSet ds = new DataSet();

    ds = sWG.RetrieveforSixWeekSchedule(categoryId, fromDate, toDate, _startTime, _endTime);

    sixRptED.SetDataSource(ds.Tables[0]);

    SixWeekScheduleEDRptViewer.ReportSource = sixRptED;


  • elygp

    Provide user id and password in your code that way crystal will not ask for further information. I have attached a sample code below.

    Dim report As New CrystalDecisions.CrystalReports.Engine.ReportDocument

    report.Load(Server.MapPath("OrderStatus.rpt")) 'Loading the report
    report.SetDatabaseLogon("userID", "password") 'Providing user id and password
    CrystalReportViewer1.ReportSource = report

    Good luck



  • The report you requested requires further information