Skip to content

Commit 74fc2e1

Browse files
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusion-content/document-processing-docs into ES-999797_CSS_Selector
2 parents b29da63 + ab896eb commit 74fc2e1

33 files changed

Lines changed: 2335 additions & 35 deletions

Document-Processing-toc.html

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,8 +2799,30 @@
27992799
<li><a href="/document-processing/word/word-processor/asp-net-core/overview">Overview</a></li>
28002800
<li><a href="/document-processing/word/word-processor/asp-net-core/getting-started-core">Getting Started</a></li>
28012801
<li><a href="/document-processing/word/word-processor/asp-net-core/feature-module">Feature modules</a></li>
2802-
<li><a href="/document-processing/word/word-processor/asp-net-core/import">Import</a></li>
2803-
<li><a href="/document-processing/word/word-processor/asp-net-core/export">Export</a></li>
2802+
<li>
2803+
<a href="/document-processing/word/word-processor/asp-net-core/import">Opening Document</a>
2804+
<ul>
2805+
<li><a href="/document-processing/word/word-processor/asp-net-core/opening-documents/azure-blob-storage">From Microsoft Azure Blob Storage</a></li>
2806+
<li><a href="/document-processing/word/word-processor/asp-net-core/opening-documents/aws-s3-bucket">From AWS S3</a></li>
2807+
<li><a href="/document-processing/word/word-processor/asp-net-core/opening-documents/box-cloud-file-storage">From Box cloud file storage</a></li>
2808+
<li><a href="/document-processing/word/word-processor/asp-net-core/opening-documents/dropbox-cloud-file-storage">From Dropbox cloud file storage</a></li>
2809+
<li><a href="/document-processing/word/word-processor/asp-net-core/opening-documents/google-cloud-storage">From Google Cloud Storage</a></li>
2810+
<li><a href="/document-processing/word/word-processor/asp-net-core/opening-documents/google-drive">From Google Drive</a></li>
2811+
<li><a href="/document-processing/word/word-processor/asp-net-core/opening-documents/one-drive">From One Drive</a></li>
2812+
</ul>
2813+
</li>
2814+
<li>
2815+
<a href="/document-processing/word/word-processor/asp-net-core/export">Saving Document</a>
2816+
<ul>
2817+
<li><a href="/document-processing/word/word-processor/asp-net-core/saving-documents/azure-blob-storage">To Microsoft Azure Blob Storage</a></li>
2818+
<li><a href="/document-processing/word/word-processor/asp-net-core/saving-documents/aws-s3-bucket">To AWS S3</a></li>
2819+
<li><a href="/document-processing/word/word-processor/asp-net-core/saving-documents/box-cloud-file-storage">To Box cloud file storage</a></li>
2820+
<li><a href="/document-processing/word/word-processor/asp-net-core/saving-documents/dropbox-cloud-file-storage">To Dropbox cloud file storage</a></li>
2821+
<li><a href="/document-processing/word/word-processor/asp-net-core/saving-documents/google-cloud-storage">To Google Cloud Storage</a></li>
2822+
<li><a href="/document-processing/word/word-processor/asp-net-core/saving-documents/google-drive">To Google Drive</a></li>
2823+
<li><a href="/document-processing/word/word-processor/asp-net-core/saving-documents/one-drive">To One Drive</a></li>
2824+
</ul>
2825+
</li>
28042826
<li><a href="/document-processing/word/word-processor/asp-net-core/collaborative-editing/overview">Collaborative Editing</a>
28052827
<ul>
28062828
<li><a href="/document-processing/word/word-processor/asp-net-core/collaborative-editing/using-redis-cache-asp-net">Using Redis in ASP.NET Core</a></li>
@@ -2904,7 +2926,18 @@
29042926
<li><a href="/document-processing/word/word-processor/asp-net-mvc/opening-documents/one-drive">From One Drive</a></li>
29052927
</ul>
29062928
</li>
2907-
<li><a href="/document-processing/word/word-processor/asp-net-mvc/export">Export</a></li>
2929+
<li>
2930+
<a href="/document-processing/word/word-processor/asp-net-mvc/export">Saving Document</a>
2931+
<ul>
2932+
<li><a href="/document-processing/word/word-processor/asp-net-mvc/saving-documents/azure-blob-storage">To Microsoft Azure Blob Storage</a></li>
2933+
<li><a href="/document-processing/word/word-processor/asp-net-mvc/saving-documents/aws-s3-bucket">To AWS S3</a></li>
2934+
<li><a href="/document-processing/word/word-processor/asp-net-mvc/saving-documents/box-cloud-file-storage">To Box cloud file storage</a></li>
2935+
<li><a href="/document-processing/word/word-processor/asp-net-mvc/saving-documents/dropbox-cloud-file-storage">To Dropbox cloud file storage</a></li>
2936+
<li><a href="/document-processing/word/word-processor/asp-net-mvc/saving-documents/google-cloud-storage">To Google Cloud Storage</a></li>
2937+
<li><a href="/document-processing/word/word-processor/asp-net-mvc/saving-documents/google-drive">To Google Drive</a></li>
2938+
<li><a href="/document-processing/word/word-processor/asp-net-mvc/saving-documents/one-drive">To One Drive</a></li>
2939+
</ul>
2940+
</li>
29082941
<li><a href="/document-processing/word/word-processor/asp-net-mvc/collaborative-editing/overview">Collaborative Editing</a>
29092942
<ul>
29102943
<li><a href="/document-processing/word/word-processor/asp-net-mvc/collaborative-editing/using-redis-cache-asp-net">Using Redis in ASP.NET MVC</a></li>
@@ -7247,7 +7280,7 @@
72477280
<ul>
72487281
<li>
72497282
2025 Volume 4 - v32.*
7250-
<ul><li> Weekly Nuget Release <ul><li><a href="/document-processing/release-notes/v32.1.20">v32.1.20</a></li></ul></li>
7283+
<ul><li> Weekly Nuget Release <ul><li><a href="/document-processing/release-notes/v32.1.21">v32.1.21</a></li><li><a href="/document-processing/release-notes/v32.1.20">v32.1.20</a></li></ul></li>
72517284
<li><a href="/document-processing/release-notes/v32.1.19">v32.1.19 Main release</a></li>
72527285
</ul>
72537286
</li>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Support for changing icon set colors in Excel | Syncfusion
3+
description: This page explains whether Syncfusion XlsIO supports changing the colors of built-in icon sets in Excel using the Syncfusion .NET Excel library (XlsIO).
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# Does XlsIO support changing the colors of built-in icon sets?
10+
11+
No. In Microsoft Excel, the colors of built-in icon sets used in conditional formatting (such as arrows, traffic lights, and symbols) are fixed and cannot be customized. XlsIO follows the same behavior and does not provide support for changing these icon colors programmatically. You can apply icon sets and configure their thresholds through conditional formatting, but the icon colors remain predefined by Excel.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
title: How to apply styles to an Entire Excel Worksheet | Syncfusion
3+
description: Learn how to apply font settings and fill color to an entire Excel worksheet using the Syncfusion .NET Excel library (XlsIO) in C# and VB.NET.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# How to apply styles to the entire worksheet in Excel?
10+
11+
The following examples show how to apply font attributes (name and size) and fill color to an entire worksheet using C# (cross-platform and Windows-specific) and VB.NET.
12+
13+
{% tabs %}
14+
{% highlight c# tabtitle="C# [Cross-platform]" %}
15+
using (ExcelEngine excelEngine = new ExcelEngine())
16+
{
17+
IApplication application = excelEngine.Excel;
18+
application.DefaultVersion = ExcelVersion.Xlsx;
19+
IWorkbook workbook = application.Workbooks.Open("../../../Data/Input.xlsx", ExcelOpenType.Automatic);
20+
IWorksheet worksheet = workbook.Worksheets[0];
21+
22+
//Define new styles to apply in rows and columns
23+
IStyle columnStyle = workbook.Styles.Add("ColumnStyle");
24+
columnStyle.Font.FontName = "Times New Roman";
25+
columnStyle.Font.Size = 10;
26+
columnStyle.Color = Color.Pink;
27+
28+
worksheet.SetDefaultColumnStyle(1, 16384, columnStyle);
29+
30+
//Save the Excel document
31+
workbook.SaveAs("../../../Output/FontStyle.xlsx");
32+
}
33+
{% endhighlight %}
34+
35+
{% highlight c# tabtitle="C# [Windows-specific]" %}
36+
using (ExcelEngine excelEngine = new ExcelEngine())
37+
{
38+
IApplication application = excelEngine.Excel;
39+
application.DefaultVersion = ExcelVersion.Xlsx;
40+
IWorkbook workbook = application.Workbooks.Open("../../Data/Input.xlsx", ExcelOpenType.Automatic);
41+
IWorksheet worksheet = workbook.Worksheets[0];
42+
43+
//Define new styles to apply in rows and columns
44+
IStyle columnStyle = workbook.Styles.Add("ColumnStyle");
45+
columnStyle.Font.FontName = "Times New Roman";
46+
columnStyle.Font.Size = 10;
47+
columnStyle.Color = Color.Pink;
48+
49+
worksheet.SetDefaultColumnStyle(1, 16384, columnStyle);
50+
51+
//Save the Excel document
52+
workbook.SaveAs("../../Output/FontStyle.xlsx");
53+
54+
}
55+
{% endhighlight %}
56+
57+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
58+
Using excelEngine As New ExcelEngine()
59+
Dim application As IApplication = excelEngine.Excel
60+
application.DefaultVersion = ExcelVersion.Xlsx
61+
62+
Dim workbook As IWorkbook = application.Workbooks.Open("../../Data/Input.xlsx", ExcelOpenType.Automatic)
63+
Dim worksheet As IWorksheet = workbook.Worksheets(0)
64+
65+
'Define new styles to apply in rows and columns
66+
Dim columnStyle As IStyle = workbook.Styles.Add("ColumnStyle")
67+
columnStyle.Font.FontName = "Times New Roman"
68+
columnStyle.Font.Size = 10
69+
columnStyle.Color = Color.Pink
70+
71+
worksheet.SetDefaultColumnStyle(1, 16384, columnStyle)
72+
73+
'Save the Excel document
74+
workbook.SaveAs("../../Output/FontStyle.xlsx")
75+
End Using
76+
{% endhighlight %}
77+
{% endtabs %}
78+
79+
N>
80+
* Applying a default style to cells replaces any existing styles. This is standard Excel behavior.
81+
* To add new styling without removing existing formats, set specific properties on targeted ranges.
82+
83+
The following code snippet shows how to apply a new style without affecting existing styles:
84+
85+
{% tabs %}
86+
{% highlight c# tabtitle="C# [Cross-platform]" %}
87+
worksheet.Range["A1:F13"].CellStyle.Font.FontName = "Times New Roman";
88+
worksheet.Range["A1:F13"].CellStyle.Font.Size = 10;
89+
worksheet.Range["A1:F13"].CellStyle.Color = Color.Lavender;
90+
{% endhighlight %}
91+
92+
{% highlight c# tabtitle="C# [Windows-specific]" %}
93+
worksheet.Range["A1:F13"].CellStyle.Font.FontName = "Times New Roman";
94+
worksheet.Range["A1:F13"].CellStyle.Font.Size = 10;
95+
worksheet.Range["A1:F13"].CellStyle.Color = Color.Lavender;
96+
{% endhighlight %}
97+
98+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
99+
worksheet.Range("A1:F13").CellStyle.Font.FontName = "Times New Roman"
100+
worksheet.Range("A1:F13").CellStyle.Font.Size = 10
101+
worksheet.Range("A1:F13").CellStyle.Color = Color.Lavender
102+
{% endhighlight %}
103+
{% endtabs %}
104+
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
---
2+
title: Set Dynamic Series Colors in a Sunburst Chart | Syncfusion
3+
description: Learn how to apply custom colors to each data point in a Sunburst chart dynamically with the Syncfusion .NET Excel library (XlsIO) using C# and VB.NET.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# How to set colors for dynamic series in a Sunburst chart?
10+
11+
The following code shows how to assign custom colors to each data point in a Sunburst chart with Syncfusion XlsIO.
12+
{% tabs %}
13+
{% highlight c# tabtitle="C# [Cross-platform]" %}
14+
{% endhighlight %}
15+
using (ExcelEngine excelEngine = new ExcelEngine())
16+
{
17+
IApplication application = excelEngine.Excel;
18+
application.DefaultVersion = ExcelVersion.Xlsx;
19+
IWorkbook workbook = application.Workbooks.Open("../../../Data/Input.xlsx");
20+
IWorksheet worksheet = workbook.Worksheets[0];
21+
22+
//Initialize chart
23+
IChartShape chart = worksheet.Charts.Add();
24+
chart.ChartType = ExcelChartType.SunBurst;
25+
26+
//Assign data
27+
chart.DataRange = worksheet["A1:B13"];
28+
chart.IsSeriesInRows = false;
29+
30+
//Apply chart elements
31+
//Set Chart Title
32+
chart.ChartTitle = "Transfer Summary";
33+
34+
//Set Data labels
35+
IChartSerie series = chart.Series[0];
36+
series.DataPoints.DefaultDataPoint.DataLabels.IsCategoryName = false;
37+
series.DataPoints.DefaultDataPoint.DataLabels.IsValue = true;
38+
39+
Color[] series_color = new Color[12];
40+
series_color[0] = Color.FromArgb(253, 182, 33);
41+
series_color[1] = Color.FromArgb(18, 151, 243);
42+
series_color[2] = Color.FromArgb(38, 7, 142);
43+
series_color[3] = Color.FromArgb(5, 60, 122);
44+
series_color[4] = Color.FromArgb(180, 70, 243);
45+
series_color[5] = Color.FromArgb(53, 12, 133);
46+
series_color[6] = Color.FromArgb(108, 11, 23);
47+
series_color[7] = Color.FromArgb(200, 70, 112);
48+
series_color[8] = Color.FromArgb(125, 200, 12);
49+
series_color[9] = Color.FromArgb(10, 150, 43);
50+
series_color[10] = Color.FromArgb(150, 82, 133);
51+
series_color[11] = Color.FromArgb(98, 15, 103);
52+
53+
for (int i = 0; i < (series as ChartSerieImpl).PointNumber; i++)
54+
{
55+
series.DataPoints[i].DataFormat.AreaProperties.ForegroundColor = series_color[i];
56+
}
57+
58+
//Set Legend
59+
chart.HasLegend = true;
60+
61+
//Positioning the chart in the worksheet
62+
chart.TopRow = 8;
63+
chart.LeftColumn = 1;
64+
chart.BottomRow = 23;
65+
chart.RightColumn = 8;
66+
67+
//Saving the workbook
68+
workbook.SaveAs("../../../Output/SunBurst.xlsx");
69+
}
70+
{% highlight c# tabtitle="C# [Windows-specific]" %}
71+
using (ExcelEngine excelEngine = new ExcelEngine())
72+
{
73+
IApplication application = excelEngine.Excel;
74+
application.DefaultVersion = ExcelVersion.Xlsx;
75+
IWorkbook workbook = application.Workbooks.Open("../../Data/Input.xlsx");
76+
IWorksheet worksheet = workbook.Worksheets[0];
77+
78+
//Initialize chart
79+
IChartShape chart = worksheet.Charts.Add();
80+
chart.ChartType = ExcelChartType.SunBurst;
81+
82+
//Assign data
83+
chart.DataRange = worksheet["A1:B13"];
84+
chart.IsSeriesInRows = false;
85+
86+
//Apply chart elements
87+
//Set Chart Title
88+
chart.ChartTitle = "Transfer Summary";
89+
90+
//Set Data labels
91+
IChartSerie series = chart.Series[0];
92+
series.DataPoints.DefaultDataPoint.DataLabels.IsCategoryName = false;
93+
series.DataPoints.DefaultDataPoint.DataLabels.IsValue = true;
94+
95+
Color[] series_color = new Color[12];
96+
series_color[0] = Color.FromArgb(253, 182, 33);
97+
series_color[1] = Color.FromArgb(18, 151, 243);
98+
series_color[2] = Color.FromArgb(38, 7, 142);
99+
series_color[3] = Color.FromArgb(5, 60, 122);
100+
series_color[4] = Color.FromArgb(180, 70, 243);
101+
series_color[5] = Color.FromArgb(53, 12, 133);
102+
series_color[6] = Color.FromArgb(108, 11, 23);
103+
series_color[7] = Color.FromArgb(200, 70, 112);
104+
series_color[8] = Color.FromArgb(125, 200, 12);
105+
series_color[9] = Color.FromArgb(10, 150, 43);
106+
series_color[10] = Color.FromArgb(150, 82, 133);
107+
series_color[11] = Color.FromArgb(98, 15, 103);
108+
109+
for (int i = 0; i < (series as ChartSerieImpl).PointNumber; i++)
110+
{
111+
series.DataPoints[i].DataFormat.AreaProperties.ForegroundColor = series_color[i];
112+
}
113+
114+
//Set Legend
115+
chart.HasLegend = true;
116+
117+
//Positioning the chart in the worksheet
118+
chart.TopRow = 8;
119+
chart.LeftColumn = 1;
120+
chart.BottomRow = 23;
121+
chart.RightColumn = 8;
122+
123+
//Saving the workbook
124+
workbook.SaveAs("../../Output/SunBurst.xlsx");
125+
}
126+
{% endhighlight %}
127+
128+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
129+
Using excelEngine As New ExcelEngine()
130+
Dim application As IApplication = excelEngine.Excel
131+
application.DefaultVersion = ExcelVersion.Xlsx
132+
133+
Dim workbook As IWorkbook = application.Workbooks.Open("../../Data/Input.xlsx")
134+
Dim worksheet As IWorksheet = workbook.Worksheets(0)
135+
136+
'Initialize chart
137+
Dim chart As IChartShape = worksheet.Charts.Add()
138+
chart.ChartType = ExcelChartType.SunBurst
139+
140+
'Assign data
141+
chart.DataRange = worksheet("A1:B13")
142+
chart.IsSeriesInRows = False
143+
144+
'Apply chart elements
145+
'Set Chart Title
146+
chart.ChartTitle = "Transfer Summary"
147+
148+
'Set Data labels
149+
Dim series As IChartSerie = chart.Series(0)
150+
series.DataPoints.DefaultDataPoint.DataLabels.IsCategoryName = False
151+
series.DataPoints.DefaultDataPoint.DataLabels.IsValue = True
152+
153+
Dim series_color(11) As Color
154+
series_color(0) = Color.FromArgb(253, 182, 33)
155+
series_color(1) = Color.FromArgb(18, 151, 243)
156+
series_color(2) = Color.FromArgb(38, 7, 142)
157+
series_color(3) = Color.FromArgb(5, 60, 122)
158+
series_color(4) = Color.FromArgb(180, 70, 243)
159+
series_color(5) = Color.FromArgb(53, 12, 133)
160+
series_color(6) = Color.FromArgb(108, 11, 23)
161+
series_color(7) = Color.FromArgb(200, 70, 112)
162+
series_color(8) = Color.FromArgb(125, 200, 12)
163+
series_color(9) = Color.FromArgb(10, 150, 43)
164+
series_color(10) = Color.FromArgb(150, 82, 133)
165+
series_color(11) = Color.FromArgb(98, 15, 103)
166+
167+
For i As Integer = 0 To CType(series, ChartSerieImpl).PointNumber - 1
168+
series.DataPoints(i).DataFormat.AreaProperties.ForegroundColor = series_color(i)
169+
Next
170+
171+
'Set Legend
172+
chart.HasLegend = True
173+
174+
'Positioning the chart in the worksheet
175+
chart.TopRow = 8
176+
chart.LeftColumn = 1
177+
chart.BottomRow = 23
178+
chart.RightColumn = 8
179+
180+
'Saving the workbook
181+
workbook.SaveAs("../../Output/SunBurst.xlsx")
182+
End Using
183+
{% endhighlight %}
184+
{% endtabs %}

0 commit comments

Comments
 (0)