Reporting

The cache management system can be configured by specifying one or more cache providers in the Telerik Reporting Configuration Section of the application’s configuration file. For example, the following XML snippet configures the cache to store the rendered pages and resources in the file system:

CopyXML
<Telerik.Reporting>
  <Cache provider="File" />
</Telerik.Reporting>

The "provider" attribute of the "Cache" element specifies the name of the current cache provider used by the viewers. There are several preconfigured providers that can be used by applications without any additional setup:

ProviderDescriptionParameters
AutoThe actual provider is chosen automatically according to the characteristics of the stored resource and the permissions granted to the application. This is the default setting if the "Cache" element is omitted from the configuration section.No parameters are defined for this element.
MemoryAll rendered pages and resources are stored in memory. Use this setting to improve the performance when rendering relatively small reports in desktop applications. However this could also increase the memory footprint of the application significantly for large reports.No parameters are defined for this element.
FileAll rendered pages and resources are stored as temporary files in the file system.BasePath - specifies where to store the files.
IsolatedStorageAll rendered pages and resources are stored as temporary files in the isolated storage.No parameters are defined for this element.
DatabaseStores all resources in database. Uses Open Access ORM to access the database.
  • BackendName - specifies the name of the chosen backend.
  • ConnectionString - specifies the connection string to the database.
ADO.NETStores all resources in database. Uses ADO.NET provider to access the database.
  • ProviderName - specifies the ADO.NET provider.
  • ConnectionString - specifies the connection string to the database.

The individual providers are registered by adding one or more "Provider" elements. The "name" attribute specifies the friendly name of the provider and the "type" attribute specifies the assembly-qualified type name of that provider. It is not necessary to specify "type" for the preconfigured providers in the Table above. If the provider requires additional parameters, these can be specified under the "Parameters" child element of the "Provider" element. The individual parameters are specified by adding one or more "Parameter" elements. The "name" attribute specifies the name of the parameter and the "value" attribute specifies the value of that parameter.

CopyXML
<Telerik.Reporting>
  <Cache provider="File">
    <Providers>
      <Provider name="File">
        <Parameters>
          <Parameter name="BasePath" value="C:\MyDataCache" />
        </Parameters>
      </Provider>
    </Providers>
  </Cache>
</Telerik.Reporting>

See Also