This is a migrated thread and some comments may be shown as answers.

MVC4 and cache telerik reporting

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Santosh Kumar
Top achievements
Rank 1
Santosh Kumar asked on 22 Oct 2014, 11:10 PM
Hi,
I am using telerik reporting on my mvc application and wanted to cache my reports per day (my data remains same for whole day and changes only next day). So I wanted to know best cache mechanism and implementation to attain cache for my reports.

This is my report code :
SomePage.aspx :

<tr>
<td style="width: 49%; vertical-align: top;">
<telerik:ReportViewer ID="somereport" runat="server" ToolbarVisible="false">
<typereportsource typename="somenamespace, AgentTrends, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"></typereportsource>
</telerik:ReportViewer>
</td>
</tr>

<div id="somedivid">

@Html.Partial("SomePage")
</div>

               

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 27 Oct 2014, 02:11 PM
Hi Santosh,

An Output cache would store the rendered HTML per report, user settings and data, which is a concept different from the reporting cache management. The purpose of the reporting cache is to store internal information required by the engine to get report's state and resources per client(viewer).

The reporting cache main task is to avoid the re-processing of the report on each interaction with it. It is for internal usage and is not designed for the purpose you described.


If your requirements are to return the same report, with the same settings and state per day, you can export it programmatically and display the result on request. All supported rendering formats are listed in the Rendering Extensions article.


I hope the above information helps you.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Santosh Kumar
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or