Example #1
0
            public async Task <IActionResult> GetReport([FromQuery] Guid template)
            {
                var stiReport = StiReport.CreateNewReport();

                if (_memoryCache.TryGetValue <byte[]>(template.ToString("D"), out var data))
                {
                    stiReport.Load(data);
                }

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

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