ورود

View Full Version : اتصال entity framework و Stimul Report



ab1234
سه شنبه 29 اردیبهشت 1394, 22:43 عصر
سلام
من چطور میتونم یک ویو توی دیتابیس رو به stimul وصل کنم؟
کدی که نوشتم اینه


StiReport report = new StiReport();
string Path = Server.MapPath("~" + ("//Content//Reports//Report.mrt"));
report.Load(Path);
report.Compile();


var query = (from p in db.ViewRepA1 select p).ToList();


report.RegBusinessObject("ViewRepA1", query);
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);

خیلی جستجو کردم اما چیزی پیدا نشد.
ممنونم

ab1234
سه شنبه 29 اردیبهشت 1394, 22:57 عصر
مشکل برطرف شد ، کد رو میذارم شاید به درد کس دیگه ای هم بخوره!!



string Path = Server.MapPath("~" + ("//Content//Reports//Report.mrt"));
report.Load(Path);
report.Compile();


var query = (from p in db.ViewRepA1 select p).ToList();


report.RegBusinessObject("ViewRepA1", query);
report.Dictionary.SynchronizeBusinessObjects(2);
return StiMvcViewerFxHelper.GetReportSnapshotResult(repor t);