Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Sep 10, 2014 12:22 pm

Hello,
I did a paragraph.clone(), the elements of the source have been copied into the new paragraph, but the list format style is missing in the new paragraph, does the clone method add also the list format ? like bullet style for example.

Thank you

tarikzaid
 
Posts: 29
Joined: Wed Aug 06, 2014 7:16 am

Thu Sep 11, 2014 3:11 am

Hello,

Thanks for your feedback.
We have tested the Paragraph.clone() method with the newest hotfix(Spire.Doc Pack(hot fix) Version:5.2.29), they are copied into the new paragraph not only the elements of the source but also bullet format style.
Code: Select all
Document doc = new Document();
doc.LoadFromFile("test.docx");
Section sec = doc.Sections[0];
Paragraph para = sec.Paragraphs[0];
sec.Body.ChildObjects.Add(para.Clone());
//sec.Paragraphs.Add((para.Clone() as Paragraph)); it works also fine.
doc.SaveToFile("result.docx",FileFormat.Docx);

Please provide us your document and test code.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Sep 16, 2014 9:22 am

Hello,

Has the issue been resolved? Could you please give us some feedback if convenience?

If there are any questions, welcome to get it back to us.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Oct 23, 2014 12:40 pm

Hi,
The issue is fixed. Thank you.

tarikzaid
 
Posts: 29
Joined: Wed Aug 06, 2014 7:16 am

Fri Oct 24, 2014 1:20 am

Hello,

Thanks for your response. If there are any questions, feel free to contact us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.Doc