ActionExportReport Not Being Called
Posted: Fri Mar 07, 2014 2:29 pm
I have a simple .Net MVC 5.0 project with references to appropriate Stimulsoft libraries for the designer and the viewer. I am able to load the designer in a page and preview the report. I have a problem when I try to call the export functionality. The dialog window appears and I can make my selections but the ExportReport route is never called. My view code looks like this
and my controller function looks like this
I have verified in developer tools that the route is never being called when i click the "Ok" button in the export dialog.
I followed the documentation found here http://www.stimulsoft.com/en/documentat ... review.htm to try to accomplish this. Is there something else that is required for the export functionality to be enabled?
Code: Select all
@Html.Stimulsoft().StiMvcDesigner(new StiMvcDesignerOptions()
{
ActionGetReportTemplate = "GetReportTemplate",
ActionGetReportSnapshot = "GetReportSnapshot",
ActionExportReport = "ExportReport",
Width = System.Web.UI.WebControls.Unit.Percentage(100),
Height = System.Web.UI.WebControls.Unit.Pixel(700)
})
Code: Select all
public FileResult ExportReport()
{
StiReport report = StiMvcDesigner.GetReportObject(this.Request);
return StiMvcDesigner.ExportReportResult(this.Request, report);
}
I followed the documentation found here http://www.stimulsoft.com/en/documentat ... review.htm to try to accomplish this. Is there something else that is required for the export functionality to be enabled?