none
ReportExecutionService Sort Issue RRS feed

  • Question

  •  Hi,

     When Iam trying to set the sort direction by using ReportExecutionService......

     rsExecService.Sort(objParameters.ParameterName, SortDirectionEnum.Ascending, true, out reportItem, out NumPages);

    Iam getting following error message:

    {System.Web.Services.Protocols.SoapException: The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available. ---> The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available. ---> The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.SqlServer.ReportingServices.ReportExecutionService.ReportExecutionService.Sort(String SortItem, SortDirectionEnum Direction, Boolean Clear, String& ReportItem, Int32& NumPages) .....

    If any body knows about the setting of the sort parameters by using ReportExecutionService, Please help me.......


    Hanu
    Monday, July 14, 2008 2:01 PM