SAP Knowledge Base Article - Public

1664415 - Why store a report object in Session

Symptom

Resolution

  • Report object stored in a sessions makes the application more efficient
  • Eliminates the need for postbacks when printing
  • Eliminates errors such as below when printing:

A Communication error has occurred. Printing will be stopped.

  • Eliminates the need for postbacks when exporting
  • Eliminates the need for postbacks when paging, drilling down or other report manipulations
  • Eliminates errors due to the report object being out of scope:

Object reference not set to an instance of an object

 

See Also

For more details see the blog Why should I store Report's object in HttpSession?

Keywords

HTTPSession HTTP post back event , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio