Skip to content

Conversation

@AkashArul26
Copy link
Contributor

Added UG to remove default chart title from the Word document

@SyncfusionBuild
Copy link
Contributor

Build Status: INQUEUE 🕒
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document


You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Charts/Applying-3D-formats).

## Removing Chart Title
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Chart Title

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback


## Removing Chart Title

The following code example illustrates how to remove the chart title from the document.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following code example illustrates how to remove the chart title from the Word document.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback

//Sets category labels.
chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 3, 1];
//Creates file stream.
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use saving code as memory stream

//Saves the Word document to MemoryStream.
MemoryStream stream = new MemoryStream();
document.Save(stream, FormatType.Docx);
//Closes the document.
document.Close();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback

'Sets category labels.
chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 3, 1)
'Creates file stream.
Imports (FileStream outputFileStream = New FileStream(Path.GetFullPath("../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For VB, we can save directly in path. Please modify the code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback


{% tabs %}

{% highlight c# tabtitle="C# [Cross-platform]" %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows Platform code is missing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback


{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Charts/Remove-chart-title/.NET%20Standard)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback


You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Charts/Applying-3D-formats).

## Removing Chart Title
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have separate page for Chart Title,
As we mentioned in the task goals, please add as last topic in this page https://help.syncfusion.com/file-formats/docio/charts/chart-title

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit.

@SyncfusionBuild
Copy link
Contributor

CI Status: ABORTED ❌
Source Compilation: Not Started ❌
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
using (WordDocument document = new WordDocument("Template.docx", FormatType.Docx))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change as creating Word document

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback

{% endhighlight %}

{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
'Adds section to the document.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some code snippet are missing. Please confirm does this code works properly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added them missed code. Ensured the code that it is working.

'Sets category labels.
chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 3, 1)
'Creates file stream.
Imports (MemoryStream stream = New MemoryStream())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please save in path, for VB as mentioned in earlier feedback.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback

{% tabs %}

{% highlight c# tabtitle="C# [Cross-platform]" %}
//Creates a new instance of WordDocument (Empty Word Document).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//Creates a new instance of WordDocument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the feedback

@Syncfusion-CI
Copy link

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@Syncfusion-CI
Copy link

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@Syncfusion-CI
Copy link

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@Syncfusion-CI
Copy link

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

Build Status: INQUEUE 🕒
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document

@MohanaselvamJothi MohanaselvamJothi changed the base branch from hotfix/hotfix-v24.1.41 to hotfix/hotfix-v24.2.3 February 26, 2024 14:15
@MohanaselvamJothi MohanaselvamJothi merged commit 4b9defd into hotfix/hotfix-v24.2.3 Feb 26, 2024
@MohanaselvamJothi MohanaselvamJothi deleted the ES-259583-Add-UG-to-remove-default-chart-title-from-the-Word-document branch February 26, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants