Hi
i got a problem with Aspose Word when convert Html to WordXML. it work fine when save to xml file. but i want to save it to MemoryStream and put to DB as Byte[]. it’s not work as expected. got 3 bytes before of Xml tag and display not correct format.
i attached 2 files in attachment.
and this is the byte[] save from MemoryStream:
<?xml version="1.0" encoding="utf-8" standalone="yes"?><?mso-application progid="Word.Document"?><w:wordDocument …<w:pgMar w:header="720" w:footer="720" /><w:cols w:space="720" /></w:sectPr></wx:sect></w:body></w:wordDocument>
highlight are the wierd characters.
Source Code:
Save directly to file (work fine)
Document doc = new Document("htmlfile");
doc.Save(targetFile, SaveFormat.WordML);
Save directly to MemoryStream(not work as expected)
Document doc = new Document("htmlfile");
doc.Save(memoryStream, SaveFormat.WordML);
please help…
thanks
Alex