Re: converting WordMl to word Doc

Hi,

I am currently testing your software. We want to convert from WordML to Doc as well. Here is some code that I have tried, but the document only displays the header and footer (no body). Using the conventional way of opening word and doing a SaveAs works, but I would really like to get this to work without using MS Word.

---

Dim myEncoder As New System.Text.ASCIIEncoding
Dim bytes As Byte() = myEncoder.GetBytes(strWordML)
Dim ms As New MemoryStream(bytes)
Dim objAsposeDoc As New Aspose.Words.Document(ms)

objAsposeDoc.Save("C:\File.doc", Aspose.Words.SaveFormat.Doc)

---

I also tried to save the WordML doc and load it directly with objAsposeDoc with the same results.

Any help would be appreciated.

Thanks

Thanks for reporting this problem to us. Please attach the WordML that you are trying to convert. I need it to be able to reproduce and fix the problem.

Best regards,

I have attached the WordML file that I am trying to convert.

Thanks for looking into this.

The problem is caused by the presence of custom XML markup in your document. Custom XML is currently not supported.

I have logged this problem to our defect base as issue #3046. We will try to fix it in our next release, which will be published in a couple of weeks. A notification will be posted here in this thread as soon as it will be done.

Best regards,

Hi,

Is there any update on this issue?

Thanks

Not yet. Sorry and thank you for patience.

Aspose.Words was fixed some time ago to ignore custom XML tags safely, but not loose normal document content inside them.

I suggest you try latest Aspose.Words version.

But custom XML tags themselves still will be lost.

The issues you have found earlier (filed as 3046) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)