private async Task <IActionResult> GetPreview(Guid key)
        {
            var stiReport = StiNetCoreDesigner.GetReportObject(this);

            stiReport.RegBusinessObject("Data", new
            {
                Test = "Test"
            });
            stiReport.Dictionary.SynchronizeBusinessObjects(5);
            await stiReport.Dictionary.SynchronizeAsync();

            return(await StiNetCoreDesigner.PreviewReportResultAsync(this, stiReport));
        }
Beispiel #2
0
            public async Task <IActionResult> PreviewReport([FromQuery] Guid template)
            {
                var stiReport = StiNetCoreDesigner.GetReportObject(this);

                if (stiReport != null)
                {
                    stiReport.RegBusinessObject("Data", new
                    {
                        Test = "Test"
                    });
                    stiReport.Dictionary.SynchronizeBusinessObjects(5);
                    await stiReport.Dictionary.SynchronizeAsync();
                }

                return(await StiNetCoreDesigner.PreviewReportResultAsync(this, stiReport));
            }