internal void SendEmail() { string type = this.GetEmailImageParserType(); if (string.IsNullOrWhiteSpace(type)) { throw new MixERPException(Warnings.CouldNotDetermineEmailImageParserType); } IHtmlImageSerializer serializer = new HtmlRendererImageSerializer(); switch (type) { case "IEWebBrowser": serializer = new WebBrowserImageSerializer(); break; } string extension = ConfigurationHelper.GetTransactionChecklistParameter("EmailImageExtension") ?? ".png"; serializer.Html = this.Html; serializer.ImageFormat = ImageHelper.GetImageFormat(extension); serializer.ImageSaved += Serializer_ImageSaved; serializer.TempDirectory = "~/Resource/Temp/Images/"; serializer.Serialize(); }
internal void SendEmail() { IHtmlImageSerializer serializer = new HtmlRendererImageSerializer(); string extension = ConfigurationHelper.GetTransactionChecklistParameter("EmailImageExtension") ?? ".png"; serializer.Html = this.Html; serializer.ImageFormat = ImageHelper.GetImageFormat(extension); serializer.ImageSaved += this.Serializer_ImageSaved; serializer.TempDirectory = "~/Resource/Temp/Images/"; serializer.Serialize(); }