Document.Save looses formatting and information from column 1 of the table

I am using Aspose.Words.Document to take an HTML document and change it into an RTF document. While doing this, it was noticed that information is getting lost, along with formatting, for the first column of certain html files. Can you please advise me how to change the Document.Save call so that the information is not lost in translation from HTML to RTF.

Thank you,
Jon Ediger



using (var input = new MemoryStream())
using (var writer = new StreamWriter(input))
using (var rtfMemStream = new MemoryStream())
{
writer.Write(html);
writer.Flush();
input.Seek(0, SeekOrigin.Begin);

var doc = new Aspose.Words.Document(input);
doc.Save(rtfMemStream, Aspose.Words.SaveFormat.Rtf);
// convert stream to string
rtfMemStream.Position = 0;
var reader = new StreamReader(rtfMemStream);
rtfData = reader.ReadToEnd();
}
return rtfData;

Hi Jon,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-9169 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Do you have any update on the timeframe for fixing this issue? We have a release coming up in the next 1-2 months, and this issue is very important to be fixed in it if possible.


Thank you,
Jon Ediger

Hi Jon,

Thanks for your inquiry.

We have a good
news for you that is WORDSNET-9169 has now been resolved and its fix
will be included in the next version of Aspose.Words (v13.11.0) which is
planned to be released by the end of November 2013. We will inform you
via this forum thread as soon as November 2013 release is published.

The issues you have found earlier (filed as WORDSNET-9169) have been fixed in this .NET update and this Java update.


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

The downloaded installer shows numerous binarys built for .Net 3.5 and lower. My app is 64 bit .Net 4.5. Which binary should be used? Am I missing binarys that I need?


Thank you,
Jon Ediger

Hi Jon,

Thanks for your inquiry. In your case, please use net2.0 assembly of Aspose.Words. Hopefully it will serve your purpose.

Please note that Aspose.Words DLL from net2.0 folder is used for 2.0, 3.0, 3.5, 4.0 and 4.5 .Net Frameworks. This assembly cannot be used when targeting the .NET Framework 3.5 or 4.0 Client Profile as it depends on System.Web. In such an environment use the library under net3.5_ClientProfile instead.

Moreover, the net3.5_ClientProfile folder contains assemblies to use with .NET Framework 3.5 or 4.0 Client Profile. Note that this assembly excludes the Save overload accepting an HttpResponse object. This is by design as the client profile excludes System.Web assembly.

Hope this answers your query. Please let us know if you have any more queries.

The fix noted in 513152 works great when the RTF is opened in MS Word.


If the RTF is opened in WordPad, however, all RTF data below the header row of the first table is not shown. The majority of the RTF remains unview-able in WordPad until it is opened in MS Word and saved again, at which point it works in both Word and WordPad.

I added this comment onto the original case, as it seems like the appropriate place, and all the info to re-create the rtf is in this case. Please let me know if you need anything further to validate this.

Thank you,
Jon Ediger

Hi Jon,


Thanks for your inquiry. I have converted the html to RTF (shared in this post) by using latest version of Aspose.Words v13.12.0 and have not found any issue while opening the generated RTF in WordPad.

Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your html to RTF by using MS Word, you will get the same output. Please check the output RTF in MS Word instead of WordPad.

Hope this answers your query. Please let us know if you have any more queries.