مشخصات مقاله
-
0
-
0.0
-
1768
-
0
-
0
آموزش پیش نمایش (Preview) در Stimulsoft
آموزش پیش نمایش (Preview) در Stimulsoft
قبل از مشاهده ی پیش نمایش یک گزارش، می توان عملیات هایی لازم را انجام داد. برای مثال می توان برای گزارش data آماده کرد. به این منظور، می توانید از PreviewReport action استفاده کنید. این متد قبل از نمایش preview یک گزارش اجرا می شود.
...
@Html.StiNetCoreDesigner(new StiNetCoreDesignerOptions() {
Actions =
{
PreviewReport = "PreviewReport"
}
})
...
HomeController.cs
...
public IActionResult PreviewReport()
{
StiReport report = StiNetCoreDesigner.GetActionReportObject(this);
DataSet data = new DataSet("Demo");
data.ReadXml(StiNetCoreHelper.MapPath(this, "Data/Demo.xml"));
report.RegData(data);
return StiNetCoreDesigner.PreviewReportResult(this, report);
}
...
1398/07/09
1768
0