cancel
Showing results for 
Search instead for 
Did you mean: 

How to define Maximum Processing Time

charles_gagnon
Participant
0 Kudos

Hello,

  I'm working with Crystal Reports for Visual Studio SP9 in an ASP.NET application using Visual Studio 2010.

  If I modify the MaxNumOfRecords option, I'm able to limit the number of records a report can retrieve but I have not found how to limit the processing time of a report event if the error message let me believe it should be possible : "A processing limit was reached. Error in File Report.rpt: Max processing time or Max records limit reached".

How does I define a Maximum Processing Time for a report?

Thank you.

Charles

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hi Charles

Is this the exact error message?

"A processing limit was reached. Error in File Report.rpt: Max processing time or Max records limit reached".

Can you include a screenshot of the error?

Is this error coming from an app you coded, or an app developed by a 3rd party?

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

charles_gagnon
Participant
0 Kudos

Hello Ludek,

    Yes it's the exact message.

     It's an web app I have coded. The error message was expected because I have used this piece of code to limit the number of records by Crystal Reports.

Dim objOpt As CrystalDecisions.ReportAppServer.ReportDefModel.ReportOptions = m_objRpt.ReportClientDocument.ReportOptions.Clone(True)

         objOpt.MaxNumOfRecords = 10

         objOpt.ErrorOnMaxNumOfRecords = True

         m_objRpt.ReportClientDocument.ModifyReportOptions(objOpt)

I would like to do the same but with a limit of time.

The error is return by Crystal Report and is displayed by the Crystal Viewer.

Thank you.

Charles

former_member183750
Active Contributor
0 Kudos

Hi Charles

There is no API for time out. The timeout value is specified in the registry under EnterpriseRequestTimeout, which is 10min by default (600000 milliseconds).

- Ludek

Answers (0)