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 Jun 26, 2024 1:15 pm

hi,
could be possibile to change values of series, from a document?

Code: Select all
public void test()
{
    Spire.Doc.Document document = new Spire.Doc.Document();
    document.LoadFromFile(@"template.docx");

    foreach (Spire.Doc.Section section in document.Sections)
    {
        foreach (Spire.Doc.Documents.Paragraph paragraph in section.Paragraphs)
        {
            foreach (Spire.Doc.DocumentObject obj in paragraph.ChildObjects)
            {

                if (obj.DocumentObjectType == DocumentObjectType.Shape)
                {
                    Spire.Doc.Fields.ShapeObject shape = (Spire.Doc.Fields.ShapeObject)obj;

                    //???
                    //shape.Chart.Series[0].

                }
            }
        }
    }
}

emamanu_1987
 
Posts: 14
Joined: Fri Jun 21, 2024 10:23 am

Thu Jun 27, 2024 6:15 am

Hello,

Thanks for your inquiry.
Sorry, we still don't support the feature you mentioned. I have added this feature to our update list with ticket SPIREDOC-10642. If it is implemented in the future, I will inform you as soon as possible.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 419
Joined: Mon Dec 27, 2021 2:23 am

Thu Jun 27, 2024 9:12 am

thank you for reply.
as work around, i should clear series and added new?

emamanu_1987
 
Posts: 14
Joined: Fri Jun 21, 2024 10:23 am

Thu Jun 27, 2024 9:48 am

Hello,

Thanks for your reply.
Yes, this is indeed a solution.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 419
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc