We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bullets in RTF export wrong when viewed in Wordpad

How do I get bullets to display correctly in Wordpad when viewing an RTF export? The level 1 and level 3 bullets display an incorrect square character.

I expect level 1 bullets should be a "disc" (filled in circle), level 2 should be a circle, and level 3 should be square.

Below is my code. Attached is the html that I'm passing into InsertHTML. This html includes a style sheet for the bullets, although I know Aspose.Words ignores it.

Thanks,

Chris

Dim doc As New Document

Dim builder As New DocumentBuilder(doc)

Dim reader As New StreamReader("c:\temp\BulletTest.htm")

Dim html As String = reader.ReadToEnd

builder.InsertHtml(html)

Dim st As New System.IO.MemoryStream

doc.Save(st, SaveFormat.Rtf)

SaveStreamToFile(st, "c:\temp\BulletTest.rtf")

Correction on the sample code...

Dim doc As New Document

Dim builder As New DocumentBuilder(doc)

Dim reader As New StreamReader("c:\temp\BulletTest.htm")

Dim html As String = reader.ReadToEnd

builder.InsertHtml(html)

doc.Save("c:\temp\BulletTest.rtf", SaveFormat.Rtf)

Hi

Thanks for your inquiry. I can’t reproduce your problem on my side. I used the following code for testing.

string html = File.ReadAllText(@"269_105516_webfoot\in.htm");

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

builder.InsertHtml(html);

doc.Save(@"269_105516_webfoot\out.rtf", SaveFormat.Rtf);

See the attached document. I use Aspose.Words v4.4.2.0.

Best regards.

Hi Alexey,

I attached an image of what I am seeing in WordPad.

Thanks.

Chris

Alexey, I should have mentioned that the WordpadView.jpg that I attached is from viewing your out.rtf file on my computer.

Hi

Sorry, I missed that you use WordPad to view RTF. I managed to reproduce the problem. I have logged this problem to our defect database as issue # 4159. Please expect a reply before the next hotfix (within 2-3 weeks). We might just fix it by then or provide more information

Best regards.

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


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