IR-Developer
سه شنبه 21 بهمن 1393, 19:48 عصر
سلام برای ایجا گزارش در استیمول از این آموزش استفاده کردم :
http://barnamenevis.org/showthread.php?453483-%D8%B3%D8%A7%D8%AE%D8%AA-%DA%AF%D8%B2%D8%A7%D8%B1%D8%B4-%D8%A8%D8%A7-Stimul-Report-MVC
ولی موقع ایجاد گزارش فقط متن زیر در صفحه ی سفید چاپ میشه :
H4sIAAAAAAAEAIVU23LbIBD9FQ3PqRDEqS0bk8mll0wbTyZuk4 dOH7C0tplIoAGUifv1RcLYsdumowfYs7uH1Z4Fdv5SV8kzGCu1 miKSZigBVehSqtUUtW75boTOObvSygmpwHB2D402bq5EY9facT Z3cg5Gikr+AnPARFHiNg1M0QwcSkTTVLIQrvf6pGtdtDUo77mx cT9FH0VlAcVTZqIGHrYMv4K27otKCnvkD1gMaN1amwRH+yFUx2 lGaEpTcpoNYl50bSOvwRZGNl21+/QrA8JBySkmGfYcZ8loTOmYDJO728gTY9h3JV1yD0vfitiHokaJ tF9gM0XOtIA65juxAuvRr9K6CBe67XpBUHCTQLNrZ4cdEoW4R1 m6NaeE4b3VOz6DXK0dp3k6DL4twB59qaYW5imccBpP8PLUbWX1 0qXhr9IrXTdaeYls6p27vOMylopfdLNwQrKMYW8xt+A/zrJx//1k2JsM79I5uxVmJZXl5KT/GI4AWxg+8ydOLitRPE3oZK4rWU76+ZgMAsqwD2KLNf9mhLKNML 4+j627eY3l/r21Wd/7T60s+WiQE0KXA6DZ+8GoyHPIh8MRLaAoT7McgOE+rLsCpezm4 U3Kfjx70RgOo9o3nGxX/18PwjdoUf1L9EAzd5v/RFxq/bRXbhCVi/CxMBF/k9PBi9tdp95gH5RXA3hYHijDW4Dd2FuhWlFFYt4rw/AfOMOvtgePBY93Zv+Y4P1D8xvVjFu5mgQAAA==
کدهای View :
@using Stimulsoft.Report.Mvc
@{
ViewBag.Title = "Report";
Layout = "~/Views/Shared/_Layout.cshtml";
Html.StiMvcViewerRenderScripts();
}
<h2>Report</h2>
@Html.Action("ViewReport","Home",null)
<div>
@Html.StiMvcViewerFx(new StiMvcViewerFxOptions()
{
Theme = StiMvcViewerFxOptions.Themes.Blue,
ActionGetReportSnapshot = "GetReportSnapshot",
ActionExportReport = "ExportReport",
ActionGetLocalization = ""
})
</div>
کدهای کنترلر
public ActionResult GetReportSnapshot()
{
var list = db.tbl_Bill.ToList();
StiReport sr = new StiReport();
sr.Load(Server.MapPath("~" + ("//Content//Report.mrt")));
sr.RegBusinessObject("myObject",list);
sr.Dictionary.SynchronizeBusinessObjects(2);
return StiMvcViewerFxHelper.GetReportSnapshotResult(sr);
}
public ActionResult ExportReport()
{
return StiMvcViewerFxHelper.ExportReportResult(HttpContex t.Request);
}
public ActionResult ViewerEvent()
{
StiReport sr = new StiReport();
sr.Load(Server.MapPath("~" + ("//Content//Report.mrt")));
return StiMvcViewerFxHelper.GetReportSnapshotResult(sr, HttpContext.Request);
}
public ActionResult ViewReport()
{
StiReport sr = new StiReport();
sr.Load(Server.MapPath("~" + ("//Content//Report.mrt")));
return StiMvcViewerFxHelper.GetReportSnapshotResult(sr, HttpContext.Request);
}
مشکل کجاست ؟ هر کاری کردم به غیر از این چیزی چاپ نمیکنه .
لطفا راهنمایی کنید .
http://barnamenevis.org/showthread.php?453483-%D8%B3%D8%A7%D8%AE%D8%AA-%DA%AF%D8%B2%D8%A7%D8%B1%D8%B4-%D8%A8%D8%A7-Stimul-Report-MVC
ولی موقع ایجاد گزارش فقط متن زیر در صفحه ی سفید چاپ میشه :
H4sIAAAAAAAEAIVU23LbIBD9FQ3PqRDEqS0bk8mll0wbTyZuk4 dOH7C0tplIoAGUifv1RcLYsdumowfYs7uH1Z4Fdv5SV8kzGCu1 miKSZigBVehSqtUUtW75boTOObvSygmpwHB2D402bq5EY9facT Z3cg5Gikr+AnPARFHiNg1M0QwcSkTTVLIQrvf6pGtdtDUo77mx cT9FH0VlAcVTZqIGHrYMv4K27otKCnvkD1gMaN1amwRH+yFUx2 lGaEpTcpoNYl50bSOvwRZGNl21+/QrA8JBySkmGfYcZ8loTOmYDJO728gTY9h3JV1yD0vfitiHokaJ tF9gM0XOtIA65juxAuvRr9K6CBe67XpBUHCTQLNrZ4cdEoW4R1 m6NaeE4b3VOz6DXK0dp3k6DL4twB59qaYW5imccBpP8PLUbWX1 0qXhr9IrXTdaeYls6p27vOMylopfdLNwQrKMYW8xt+A/zrJx//1k2JsM79I5uxVmJZXl5KT/GI4AWxg+8ydOLitRPE3oZK4rWU76+ZgMAsqwD2KLNf9mhLKNML 4+j627eY3l/r21Wd/7T60s+WiQE0KXA6DZ+8GoyHPIh8MRLaAoT7McgOE+rLsCpezm4 U3Kfjx70RgOo9o3nGxX/18PwjdoUf1L9EAzd5v/RFxq/bRXbhCVi/CxMBF/k9PBi9tdp95gH5RXA3hYHijDW4Dd2FuhWlFFYt4rw/AfOMOvtgePBY93Zv+Y4P1D8xvVjFu5mgQAAA==
کدهای View :
@using Stimulsoft.Report.Mvc
@{
ViewBag.Title = "Report";
Layout = "~/Views/Shared/_Layout.cshtml";
Html.StiMvcViewerRenderScripts();
}
<h2>Report</h2>
@Html.Action("ViewReport","Home",null)
<div>
@Html.StiMvcViewerFx(new StiMvcViewerFxOptions()
{
Theme = StiMvcViewerFxOptions.Themes.Blue,
ActionGetReportSnapshot = "GetReportSnapshot",
ActionExportReport = "ExportReport",
ActionGetLocalization = ""
})
</div>
کدهای کنترلر
public ActionResult GetReportSnapshot()
{
var list = db.tbl_Bill.ToList();
StiReport sr = new StiReport();
sr.Load(Server.MapPath("~" + ("//Content//Report.mrt")));
sr.RegBusinessObject("myObject",list);
sr.Dictionary.SynchronizeBusinessObjects(2);
return StiMvcViewerFxHelper.GetReportSnapshotResult(sr);
}
public ActionResult ExportReport()
{
return StiMvcViewerFxHelper.ExportReportResult(HttpContex t.Request);
}
public ActionResult ViewerEvent()
{
StiReport sr = new StiReport();
sr.Load(Server.MapPath("~" + ("//Content//Report.mrt")));
return StiMvcViewerFxHelper.GetReportSnapshotResult(sr, HttpContext.Request);
}
public ActionResult ViewReport()
{
StiReport sr = new StiReport();
sr.Load(Server.MapPath("~" + ("//Content//Report.mrt")));
return StiMvcViewerFxHelper.GetReportSnapshotResult(sr, HttpContext.Request);
}
مشکل کجاست ؟ هر کاری کردم به غیر از این چیزی چاپ نمیکنه .
لطفا راهنمایی کنید .