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.

Tue Oct 17, 2017 11:31 am

Hello,

I have a spire doc licence I would like generate charts (Bar chart, PIE chart ...) but it seems to me that this is not possible to use Spire DOC and Spire XLS together.

How I can make to create charts ?

Thanks you,

elysiumsecurity
 
Posts: 14
Joined: Mon Oct 09, 2017 8:15 am

Wed Oct 18, 2017 1:58 am

Dear elysiumsecurity,

Thanks for your inquiry.
Sorry that Spire.Doc doesn't support creating charts at present. We will consider adding the new feature in our future upgrade.
If there is any other question, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Wed Oct 18, 2017 8:11 am

Hello,

Thank you.
I need the ShapeObject but in the documentation it is write this down :
"From Spire.Doc Version 6.0 or above, we added a new feature to work with shape using code."
I have the spire doc strandard in version 5.9.

Would it be possible to add the ShapeObject in the future upgrade ?

Do you know the approximate date of release of the future version ?

Thank you for your help.

elysiumsecurity
 
Posts: 14
Joined: Mon Oct 09, 2017 8:15 am

Wed Oct 18, 2017 8:36 am

Dear elysiumsecurity,

I have confirmed with our Dev team that the standard version will include the ShapeObject. We will prepare the hotfix ASAP and let you know when it is published.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue Oct 24, 2017 9:45 am

Hello,

Did you have any news for my requests ?

Thank you,

elysiumsecurity
 
Posts: 14
Joined: Mon Oct 09, 2017 8:15 am

Wed Oct 25, 2017 1:42 am

Dear elysiumsecurity,

We are still building the version, and will let you know once the version is available.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri Oct 27, 2017 3:55 am

Dear elysiumsecurity,

Thanks for waiting.
We just published the standard edition: Spire.Doc for .NET Standard(hotfix) Version:6.0.37.
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri Oct 27, 2017 9:56 am

Hello,

Thank you.
I not found the Chart object. it is integrated in the version ?

elysiumsecurity
 
Posts: 14
Joined: Mon Oct 09, 2017 8:15 am

Fri Oct 27, 2017 10:54 am

Hi elysiumsecurity,

Sorry that our Spire.Doc doesn't support creating chart at present. If there is any good news in the future, we will let you know.
If there is other question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue May 16, 2023 6:10 am

Hello,

Thank you for your patience.

I'm glad to inform you that our Spire.Doc now supports the feature of adding charts into Word documents. Please feel free to download and test Spire.Doc Pack Version:11.5.6.
Our website link: https://www.e-iceblue.com/Download/download-word-for-net-now.html
NuGet link: https://www.nuget.org/packages/Spire.Doc/11.5.6

Sample code is as follows, and attached more charts demos.
Code: Select all
        //Create word document
            Document document = new Document();

            //Create a new section
            Section section = document.AddSection();

            //Create a new paragraph and append text
            section.AddParagraph().AppendText("Column chart.");

            //Create a new section to append column chart
            Paragraph newPara = section.AddParagraph();
            ShapeObject shape = newPara.AppendChart(ChartType.Column, 500, 300);

            //Clear the chart's series data to start with a clean chart.
            Chart chart = shape.Chart;
            chart.Series.Clear();

            //Add a custom series to the chart with categories for the X-axis, and large respective numeric values for the Y-axis.
            chart.Series.Add("Test Series",
                new[] { "Word", "PDF", "Excel", "GoogleDocs", "Office" },
                new double[] { 1900000, 850000, 2100000, 600000, 1500000 });

            //Set the number format of the Y-axis tick labels to group digits with commas.
            chart.AxisY.NumberFormat.FormatCode = "#,##0";

            //Save the result file.
            document.SaveToFile("AppendColumnChart.docx", FileFormat.Docx);



Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc