Cloning Styles - Bullets not working

Hi,

I’m copying a Style from one document to another. The problem is that Styles bullet fail to appear in the output document, as
well as the Style Gallery within Word.

I’m using:

documentBuilder.Document.Styles.AddCopy(templateStyle);

Where ‘templateStyle’ is the style that contains the Bullet
list. I’ve checked the cloned Styles List Format and all the child list levels
and they all indicate that it is a Bullet list.

I’m using Aspose version 13.3

Many thanks

Russell

Hi Russell,

Thanks for your inquiry. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.

Hi,

I’ve attached the documents required. So you want to be copying Styles from the
“StylesFromThisDocument.doc” into
“ImportStylesIntoThisDocument.rtf”

The Style
that we are having issue with is the “Bullet” Style including its hierarchy.

The Bullet symbol does not appear in the document or the Style Gallery.

Thanks

Russell

Hi Russell,

Thanks for sharing the document. Perhaps, you are using an older version of Aspose.Words; as with Aspose.Words v13.3.0.1, I am unable to reproduce this problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v13.3.0.1 and let us know how it goes on your side. I hope, this will help.

I have attached the output RTF file with this post for your kind reference.

Document doc = new Document(MyDir + "StylesFromThisDocument.doc");
Style newStyle = doc.Styles.AddCopy(doc.Styles["Bullet"]);
newStyle.Name = "Bullet Aspose";
doc.Save(MyDir + "Out.rtf");