CoreHtmlToImage
var converter = new HtmlConverter(); var html = stringbuilderObj.ToString(); var bytes = converter.FromHtmlString(html, 400, ImageFormat.Png); var rootpath = Path.Combine("Config", "Images"); if (!Directory.Exists(rootpath)) { Directory.CreateDirectory(rootpath); } File.WriteAllBytes(rootpath + "\\" + name.Replace(" ", string.Empty) + ".png", bytes);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)