1437069 - How to set ServerFileReport service timeout when running reports as a web service

SAP Knowledge Base Article - Public

1437069 - How to set ServerFileReport service timeout when running reports as a web service

Symptom

Resolution

protected void Page_Load(object sender, EventArgs e)
{
      ServerFileReport sfr = new ServerFileReport();
      sfr.WebServiceUrl = "http://localhost/CrystalReportViewers115/ServerFileReportService.asmx";
      sfr.ReportPath = "chart.rpt";
      sfr.ObjectType = EnumServerFileType.REPORT;
      //
      newServerFileReport longRPT = new newServerFileReport(sfr);
      CrystalReportViewer1.ReportSource = longRPT;
}
public class newServerFileReport : CrystalDecisions.ReportSource.RemoteReportSource

{
     public newServerFileReport(ServerFileReport report)
     : base(report, false)
    {
          m_proxy.Timeout = 600000;
         report.GetExtraData();
         report.ObjectType = EnumServerFileType.REPORT;
         report.ToUri();
    }
}

Keywords

forum thread, server, file , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V0 ; Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2