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.

Thu Nov 03, 2016 4:58 pm

I am using this sample code...

Code: Select all
Document sourceDoc = new Document("source.docx");
Document destinationDoc = new Document("target.docx");         
foreach (Section sec in sourceDoc.Sections)
{
    foreach (DocumentObject obj in sec.Body.ChildObjects)
    {
        destinationDoc.Sections[0].Body.ChildObjects.Add(obj.Clone());
    }
}
destinationDoc.SaveToFile("target.docx");
System.Diagnostics.Process.Start("target.docx");


It is working fine, but when insert GRAPH in my doc file, this code broke.

I need some help, plz.

richardfrk
 
Posts: 1
Joined: Wed Nov 02, 2016 8:12 pm

Fri Nov 04, 2016 2:39 am

Hi richardfrk,

Thanks for your inquiry.
Sorry that at present Spire.Doc doesn't support graph. Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc