PDA

View Full Version : سوال: مشکل در نمایش چارت استیمول 2019.2.3



Iran58
دوشنبه 20 خرداد 1398, 18:45 عصر
سلام
من کد زیر را نوشته ام


@using Stimulsoft.Report.Mvc@{ ViewBag.Title = "Contact";}
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions(){ Localization = "~/content/reports/fa.xml", Actions = { GetReportSnapshot = "LoadReportSnapshot", ViewerEvent = "ViewerEvent", ExportReport = "ExportReport", PrintReport = "PrintReport" }})





public ActionResult LoadReportSnapshot()
{
var testChartOnes=new List<TestChartOne>();
testChartOnes.AddRange(new List<TestChartOne>
{
new TestChartOne{Name = "D",Count = 2},
new TestChartOne{Name = "I",Count = 17},
new TestChartOne{Name = "S",Count = 10},
new TestChartOne{Name = "C",Count = 24},
});
var report = new StiReport();


report.Load(Server.MapPath("~/Reports/DI980318.mrt"));
report.RegBusinessObject("db", testChartOnes);
report.Dictionary.Variables.Add("DatePer", "1397/01/01");
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
}
public virtual ActionResult ViewerEvent()
{
return StiMvcViewer.ViewerEventResult();
}
public virtual ActionResult PrintReport()
{
return StiMvcViewer.PrintReportResult(this.HttpContext);
}


public virtual ActionResult ExportReport()
{
return StiMvcViewer.ExportReportResult();
}

و چارت را در استیمول قرار داده ام
150342
اما هنگام اجرا داخل چارت چیزی نمایش میدهد
بایدچکارکنم

neda.larki
شنبه 02 شهریور 1398, 22:09 عصر
سلام شما با core کار می کنین؟ میشه به من کمک کنین بتونم یه گزارش ایجاد کنم؟