GlobalizationManager not working in MvcMobileDesigner?
Posted: Wed Mar 15, 2017 2:06 pm
I add GlobalizationManager in GetReportTemplate and GetReportSnapshotD but not works!
//GetReportSnapshotD
public ActionResult GetReportTemplate(string id)
{
StiReport report = new StiReport();
try
{
report.Load(Server.MapPath("~/Content/Reports/" + id + ".mrt"));
GetResults(report);
//Globalization -- not work
report.GlobalizationManager = new GlobalizationManager(GetCulture());
StiMvcMobileDesignerOptions opt = new StiMvcMobileDesignerOptions();
opt.Theme = Stimulsoft.Report.MvcMobile.StiTheme.Office2013DarkGrayBlue;
//opt.Localization = GetLocalizationDesigner();
return StiMvcMobileDesigner.GetReportTemplateResult(HttpContext, report);
}
catch (Exception e)
{
return new HttpStatusCodeResult(HttpStatusCode.BadRequest, "Custom Error Message: " + e.Message);
}
}
public ActionResult GetReportSnapshotD(string id)
{
StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext);
//Globalization -- not work
report.GlobalizationManager = new GlobalizationManager(GetCulture());
return StiMvcMobileDesigner.GetReportSnapshotResult(HttpContext, report);
}
Another question, could you give me an example of how to apply StiMvcMobileDesignerOptions[in blue].
Thanks.
//GetReportSnapshotD
public ActionResult GetReportTemplate(string id)
{
StiReport report = new StiReport();
try
{
report.Load(Server.MapPath("~/Content/Reports/" + id + ".mrt"));
GetResults(report);
//Globalization -- not work
report.GlobalizationManager = new GlobalizationManager(GetCulture());
StiMvcMobileDesignerOptions opt = new StiMvcMobileDesignerOptions();
opt.Theme = Stimulsoft.Report.MvcMobile.StiTheme.Office2013DarkGrayBlue;
//opt.Localization = GetLocalizationDesigner();
return StiMvcMobileDesigner.GetReportTemplateResult(HttpContext, report);
}
catch (Exception e)
{
return new HttpStatusCodeResult(HttpStatusCode.BadRequest, "Custom Error Message: " + e.Message);
}
}
public ActionResult GetReportSnapshotD(string id)
{
StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext);
//Globalization -- not work
report.GlobalizationManager = new GlobalizationManager(GetCulture());
return StiMvcMobileDesigner.GetReportSnapshotResult(HttpContext, report);
}
Another question, could you give me an example of how to apply StiMvcMobileDesignerOptions[in blue].
Thanks.