123456789101112131415161718192021222324252627 |
-
- using FastReport.Utils.Json.Serialization;
- using System.IO;
- namespace FastReport.Cloud.FastReport.Models
- {
- internal sealed class ReportCreateVM : FileCreateVM
- {
- private Report _report;
- [JsonIgnore]
- public Report Report
- {
- get { return _report; }
- set
- {
- _report = value;
- var ms = new MemoryStream();
- _report.SavePrepared(ms);
- byte[] bytes = ms.ToArray();
- ms.Dispose();
- Content = bytes;
- }
- }
- }
- }
|