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