is there a way to create html from an Section object?
I did the following workaround. But that, of course, generates a complete html page.
- Code: Select all
Section section = ....
var doc = new Spire.Doc.Document();
doc.Sections.Add(section.Clone());
var ms = new MemoryStream();
doc.SaveToStream(ms, FileFormat.Html);
var result = new byte[ms.Length];
ms.Write(result,0, (int)ms.Length);
var html = Encoding.UTF8.GetString(ms.ToArray());
Best regards,
Arne