Exemplo n.º 1
0
            public async Task <IActionResult> SaveReport([FromQuery] Guid template)
            {
                var report = StiNetCoreDesigner.GetReportObject(this);

                await using var ms = new MemoryStream();
                report.Save(ms);
                ms.Position = 0;

                _memoryCache.Set(template.ToString("D"), ms.ToArray());

                return(await StiNetCoreDesigner.SaveReportResultAsync(this));
            }
Exemplo n.º 2
0
        private async Task <IActionResult> SaveReport(Guid key)
        {
            var report = StiNetCoreDesigner.GetReportObject(this);

            await using var ms = new MemoryStream();
            report.Save(ms);
            ms.Position = 0;

            _memoryCache.Set(key.ToString("D"), ms.ToArray());

            return(await StiNetCoreDesigner.SaveReportResultAsync(this));
        }