using FastReport.Utils; using FastReport.Export.Html; namespace FastReport.Export.Mht { /// /// Represents the MHT export filter. /// public partial class MHTExport : ExportBase { #region Private fields private HTMLExport htmlExport; private MyRes res; #endregion #region Public properties /// /// Enable or disable the pictures in MHT export /// public bool Pictures { get { return htmlExport.Pictures; } set { htmlExport.Pictures = value; } } /// /// Gets or sets the Wysiwyg quality of export /// public bool Wysiwyg { get { return htmlExport.Wysiwyg; } set { htmlExport.Wysiwyg = value; } } /// /// Gets or sets the image format. /// public FastReport.Export.Html.ImageFormat ImageFormat { get { return htmlExport.ImageFormat; } set { htmlExport.ImageFormat = value; } } #endregion #region Protected methods /// protected override string GetFileFilter() { return new MyRes("FileFilters").Get("MhtFile"); } /// protected override void Start() { base.Start(); htmlExport.Format = HTMLExportFormat.MessageHTML; htmlExport.PageNumbers = PageNumbers; htmlExport.SinglePage = true; htmlExport.Navigator = false; htmlExport.SubFolder = false; Report.Export(htmlExport, Stream); } /// protected override void Finish() { } #endregion /// /// Initializes a new instance of the class. /// public MHTExport() { htmlExport = new HTMLExport(); res = new MyRes("Export,Mht"); } } }