Hi, I get a strange error during converting to HTML
using (MemoryStream memoryStream = new MemoryStream())
{
using (MemoryStream outStream = new MemoryStream())
{
memoryStream.Write(templateContent, 0, templateContent.Length);
Document document = new Document();
document.HtmlExportOptions.ImageEmbedded = false;
document.LoadFromStream(memoryStream, FileFormat.Docx);
document.SaveToStream(outStream, FileFormat.Html); <----Line throw error
}
}
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
at spr⍰.ᜀ(Image A_0, String A_1, Int32 A_2, Int32 A_3, Boolean A_4, ImageFormat A_5)
at spr⍰.ᜀ(DocPicture A_0, Paragraph A_1)
at spr⍰.ᜀ(ParagraphBase A_0, Boolean& A_1, ParagraphBase& A_2)
at spr⍰.ᜄ(Paragraph A_0)
at spr⍰.ᜀ(Section A_0)
at spr⍰.ᜂ(Document A_0)
at spr⍰.ᜁ(Document A_0, String A_1)
at spr⍰.ᜀ(Document A_0, Stream A_1)
How to solve it?