Skip to content

Commit ef6fd77

Browse files
authored
Merge branch 'hotfix/hotfix-v31.2.2' into 990137-FAQStreamChangesUG
2 parents aaddfa7 + d7378e4 commit ef6fd77

File tree

183 files changed

+7432
-1004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+7432
-1004
lines changed

Document-Processing-toc.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2613,6 +2613,9 @@
26132613
<li>
26142614
<a href="/document-processing/pdf/conversions/html-to-pdf/net/Convert-HTML-to-PDF-in-AWS-Elastic-Beanstalk">AWS Elastic Beanstalk</a>
26152615
</li>
2616+
<li>
2617+
<a href="/document-processing/pdf/conversions/html-to-pdf/net/Convert-HTML-to-PDF-in-Amazon-ECS-with-Fargate">AWS Fargate (ECS)</a>
2618+
</li>
26162619
</ul>
26172620
</li>
26182621
<li>
@@ -4345,6 +4348,9 @@
43454348
<li>
43464349
<a href="/document-processing/word/word-library/net/Support-File-Formats">Supported File Formats</a>
43474350
</li>
4351+
<li>
4352+
<a href="/document-processing/word/word-library/net/Feature-Matrix">Feature Matrix</a>
4353+
</li>
43484354
<li>
43494355
<a href="/document-processing/word/word-library/net/FAQ">FAQs</a>
43504356
<ul>
@@ -4672,6 +4678,7 @@
46724678
<li>
46734679
How To
46744680
<ul>
4681+
<li><a href="/document-processing/excel/spreadsheet/asp-net-core/how-to/create-a-object-structure">Create a object structure </a></li>
46754682
<li><a href="/document-processing/excel/spreadsheet/asp-net-core/how-to/change-active-sheet">Changing the active sheet while importing a file</a></li>
46764683
<li><a href="/document-processing/excel/spreadsheet/asp-net-core/how-to/identify-the-context-menu-opened">Identify the context menu opened</a></li>
46774684
</ul>
@@ -4722,6 +4729,7 @@
47224729
<li>
47234730
How To
47244731
<ul>
4732+
<li><a href="/document-processing/excel/spreadsheet/asp-net-mvc/how-to/create-a-object-structure">Create a object structure </a></li>
47254733
<li><a href="/document-processing/excel/spreadsheet/asp-net-mvc/how-to/change-active-sheet">Changing the active sheet while importing a file</a></li>
47264734
<li><a href="/document-processing/excel/spreadsheet/asp-net-mvc/how-to/identify-the-context-menu-opened">Identify the context menu opened</a></li>
47274735
</ul>
@@ -4774,6 +4782,7 @@
47744782
<li>
47754783
How To
47764784
<ul>
4785+
<li><a href="/document-processing/excel/spreadsheet/angular/how-to/create-a-object-structure">Create a object structure </a></li>
47774786
<li><a href="/document-processing/excel/spreadsheet/angular/how-to/change-active-sheet">Changing the active sheet while importing a file</a></li>
47784787
<li><a href="/document-processing/excel/spreadsheet/angular/how-to/identify-the-context-menu-opened">Identify the context menu opened</a></li>
47794788
</ul>
@@ -4872,6 +4881,7 @@
48724881
<li>
48734882
How To
48744883
<ul>
4884+
<li><a href="/document-processing/excel/spreadsheet/vue/how-to/create-a-object-structure">Create a object structure </a></li>
48754885
<li><a href="/document-processing/excel/spreadsheet/vue/how-to/change-active-sheet">Changing the active sheet while importing a file</a></li>
48764886
<li><a href="/document-processing/excel/spreadsheet/vue/how-to/identify-the-context-menu-opened">Identify the context menu opened</a></li>
48774887
</ul>
@@ -5893,6 +5903,22 @@
58935903
<li>
58945904
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-setting-row-height-for-individual-cells-in-Excel">Does XlsIO support setting row height for individual cells in Excel?</a>
58955905
</li>
5906+
<li>
5907+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-access-the-built-in-properties-of-Excel-documents">How to access the built-in properties of Excel documents?</a>
5908+
</li>
5909+
<li>
5910+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-get-the-column-width-and-row-height-in-pixels">How to get the column width and row height in pixels?</a>
5911+
</li>
5912+
<li>
5913+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-sensititivity-labels">Does XlsIO support sensitivity labels?</a>
5914+
</li>
5915+
<li>
5916+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-set-hex-color-value-to-the-cell">How to set a hex color value for a cell?</a>
5917+
</li>
5918+
<li>
5919+
<a href="/document-processing/excel/excel-library/net/faqs/in-which-situation-we-use-EnablePartialTrustCode-property">When should use EnablePartialTrustCode property?</a>
5920+
</li>
5921+
58965922
</ul>
58975923
</li>
58985924
</ul>
@@ -6697,6 +6723,9 @@
66976723
<li>
66986724
<a href="/document-processing/powerpoint/powerpoint-library/net/Supported-and-Unsupported-Features">Supported and Unsupported Features</a>
66996725
</li>
6726+
<li>
6727+
<a href="/document-processing/powerpoint/powerpoint-library/net/Feature-Matrix">Feature Matrix</a>
6728+
</li>
67006729
<li>
67016730
<a href="/document-processing/powerpoint/powerpoint-library/net/FAQ">FAQs</a>
67026731
<ul>
@@ -7045,7 +7074,7 @@
70457074
<ul>
70467075
<li>
70477076
Weekly Nuget Release
7048-
<ul>
7077+
<ul><li><a href="/document-processing/release-notes/v31.2.10">v31.2.10</a></li>
70497078
<li><a href="/document-processing/release-notes/v31.2.5">v31.2.5</a></li>
70507079
<li><a href="/document-processing/release-notes/v31.2.4">v31.2.4</a></li>
70517080
<li><a href="/document-processing/release-notes/v31.2.3">v31.2.3</a></li>

Document-Processing/Excel/Conversions/CSV-to-Excel/NET/CSV-to-Excel-Conversion.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,13 @@ using (ExcelEngine excelEngine = new ExcelEngine())
2727
{
2828
IApplication application = excelEngine.Excel;
2929
application.DefaultVersion = ExcelVersion.Xlsx;
30-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.csv"), FileMode.Open, FileAccess.Read);
3130

3231
//Open the CSV file
33-
IWorkbook workbook = application.Workbooks.Open(inputStream, ",");
32+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.csv"), ",");
3433
IWorksheet worksheet = workbook.Worksheets[0];
3534

36-
//Saving the workbook as stream
37-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
38-
workbook.SaveAs(outputStream);
39-
40-
//Dispose streams
41-
outputStream.Dispose();
42-
inputStream.Dispose();
35+
//Saving the workbook
36+
workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
4337
}
4438
{% endhighlight %}
4539

@@ -85,16 +79,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
8579
application.DefaultVersion = ExcelVersion.Xlsx;
8680

8781
//Open the TSV file
88-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.tsv"), FileMode.Open, FileAccess.Read);
89-
IWorkbook workbook = application.Workbooks.Open(inputStream, "\t");
82+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.tsv"), "\t");
9083

9184
//Save the workbook
92-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
93-
workbook.SaveAs(outputStream);
94-
95-
//Dispose streams
96-
outputStream.Dispose();
97-
inputStream.Dispose();
85+
workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
9886
}
9987
{% endhighlight %}
10088

Document-Processing/Excel/Conversions/CSV-to-Excel/overview.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,13 @@ using (ExcelEngine excelEngine = new ExcelEngine())
2727
{
2828
IApplication application = excelEngine.Excel;
2929
application.DefaultVersion = ExcelVersion.Xlsx;
30-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.csv"), FileMode.Open, FileAccess.Read);
3130

3231
//Open the CSV file
33-
IWorkbook workbook = application.Workbooks.Open(inputStream, ",");
32+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.csv"), ",");
3433
IWorksheet worksheet = workbook.Worksheets[0];
3534

36-
//Saving the workbook as stream
37-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
38-
workbook.SaveAs(outputStream);
39-
40-
//Dispose streams
41-
outputStream.Dispose();
42-
inputStream.Dispose();
35+
//Saving the workbook
36+
workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
4337
}
4438
{% endhighlight %}
4539

@@ -85,16 +79,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
8579
application.DefaultVersion = ExcelVersion.Xlsx;
8680

8781
//Open the TSV file
88-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.tsv"), FileMode.Open, FileAccess.Read);
89-
IWorkbook workbook = application.Workbooks.Open(inputStream, "\t");
82+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.tsv"), "\t");
9083

9184
//Save the workbook
92-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
93-
workbook.SaveAs(outputStream);
94-
95-
//Dispose streams
96-
outputStream.Dispose();
97-
inputStream.Dispose();
85+
workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
9886
}
9987
{% endhighlight %}
10088

Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
3535
application.XlsIORenderer.ChartRenderingOptions.ScalingMode = ScalingMode.Best;
3636

3737
//Open existing workbook with chart
38-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
39-
IWorkbook workbook = application.Workbooks.Open(inputStream);
38+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
4039
IWorksheet worksheet = workbook.Worksheets[0];
4140

4241
//Access the chart from the worksheet
@@ -50,7 +49,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
5049

5150
//Dispose streams
5251
outputStream.Dispose();
53-
inputStream.Dispose();
5452
}
5553
{% endhighlight %}
5654

Document-Processing/Excel/Conversions/Chart-to-Image/overview.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
2828
//Set converter chart image format to PNG
2929
application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
3030

31-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
32-
IWorkbook workbook = application.Workbooks.Open(inputStream);
31+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
3332
IWorksheet worksheet = workbook.Worksheets[0];
3433

3534
IChart chart = worksheet.Charts[0];
@@ -42,7 +41,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
4241

4342
//Dispose streams
4443
outputStream.Dispose();
45-
inputStream.Dispose();
4644
}
4745
{% endhighlight %}
4846

Document-Processing/Excel/Conversions/Excel-to-CSV/NET/Excel-to-CSV-Conversion.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
2727
{
2828
IApplication application = excelEngine.Excel;
2929
application.DefaultVersion = ExcelVersion.Xlsx;
30-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
31-
IWorkbook workbook = application.Workbooks.Open(inputStream);
30+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
3231

33-
//Saving the workbook as streams
34-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Sample.csv"), FileMode.Create, FileAccess.ReadWrite);
35-
workbook.SaveAs(outputStream, ",");
36-
37-
//Dispose streams
38-
outputStream.Dispose();
39-
inputStream.Dispose();
32+
//Saving the workbook
33+
workbook.SaveAs(Path.GetFullPath("Output/Sample.csv"), ",");
4034
}
4135
{% endhighlight %}
4236

@@ -83,16 +77,14 @@ using (ExcelEngine excelEngine = new ExcelEngine())
8377
application.MaximumRowsForCsv = 3000000;
8478
application.MaximumColumnsForCsv = 20000;
8579

86-
FileStream inputStream = new FileStream("Sample.csv", FileMode.Open, FileAccess.Read);
87-
IWorkbook workbook = application.Workbooks.Open(inputStream);
80+
IWorkbook workbook = application.Workbooks.Open("Sample.csv");
8881
IWorksheet sheet = workbook.Worksheets[0];
8982

9083
sheet.Range[2000000, 1].Text = "Syncfusion";
9184
sheet.Range[20, 18000].Text = "Syncfusion";
9285

93-
//Saving the workbook as stream
94-
FileStream outputStream = new FileStream("Output.csv", FileMode.Create, FileAccess.ReadWrite);
95-
workbook.SaveAs(outputStream,",");
86+
//Saving the workbook
87+
workbook.SaveAs("Output.csv",",");
9688
}
9789
{% endhighlight %}
9890

@@ -149,12 +141,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
149141
IApplication application = excelEngine.Excel;
150142
application.DefaultVersion = ExcelVersion.Xlsx;
151143

152-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
153-
IWorkbook workbook = application.Workbooks.Open(inputStream);
144+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
154145

155146
//Save the workbook in CSV format with tab(\t) as delimiter
156-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.tsv"), FileMode.Create, FileAccess.ReadWrite);
157-
workbook.SaveAs(outputStream, "\t");
147+
workbook.SaveAs(Path.GetFullPath("Output/Output.tsv"), "\t");
158148
}
159149
{% endhighlight %}
160150

Document-Processing/Excel/Conversions/Excel-to-CSV/overview.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
2727
{
2828
IApplication application = excelEngine.Excel;
2929
application.DefaultVersion = ExcelVersion.Xlsx;
30-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
31-
IWorkbook workbook = application.Workbooks.Open(inputStream);
30+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
3231

33-
//Saving the workbook as streams
34-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Sample.csv"), FileMode.Create, FileAccess.ReadWrite);
35-
workbook.SaveAs(outputStream, ",");
36-
37-
//Dispose streams
38-
outputStream.Dispose();
39-
inputStream.Dispose();
32+
//Saving the workbook
33+
workbook.SaveAs(Path.GetFullPath("Output/Sample.csv"), ",");
4034
}
4135
{% endhighlight %}
4236

@@ -83,16 +77,14 @@ using (ExcelEngine excelEngine = new ExcelEngine())
8377
application.MaximumRowsForCsv = 3000000;
8478
application.MaximumColumnsForCsv = 20000;
8579

86-
FileStream inputStream = new FileStream("Sample.csv", FileMode.Open, FileAccess.Read);
87-
IWorkbook workbook = application.Workbooks.Open(inputStream);
80+
IWorkbook workbook = application.Workbooks.Open("Sample.csv");
8881
IWorksheet sheet = workbook.Worksheets[0];
8982

9083
sheet.Range[2000000, 1].Text = "Syncfusion";
9184
sheet.Range[20, 18000].Text = "Syncfusion";
9285

93-
//Saving the workbook as stream
94-
FileStream outputStream = new FileStream("Output.csv", FileMode.Create, FileAccess.ReadWrite);
95-
workbook.SaveAs(outputStream,",");
86+
//Saving the workbook
87+
workbook.SaveAs("Output.csv",",");
9688
}
9789
{% endhighlight %}
9890

@@ -149,12 +141,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
149141
IApplication application = excelEngine.Excel;
150142
application.DefaultVersion = ExcelVersion.Xlsx;
151143

152-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
153-
IWorkbook workbook = application.Workbooks.Open(inputStream);
144+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
154145

155146
//Save the workbook in CSV format with tab(\t) as delimiter
156-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.tsv"), FileMode.Create, FileAccess.ReadWrite);
157-
workbook.SaveAs(outputStream, "\t");
147+
workbook.SaveAs(Path.GetFullPath("Output/Output.tsv"), "\t");
158148
}
159149
{% endhighlight %}
160150

Document-Processing/Excel/Conversions/Excel-to-HTML/NET/Excel-to-HTML-Conversion.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
3535
worksheet.SaveAsHtml(stream);
3636

3737
//Save a workbook as HTML file
38-
workbook.SaveAsHtml(stream, Syncfusion.XlsIO.Implementation.HtmlSaveOptions.Default);
38+
workbook.SaveAsHtml("Sample.html", Syncfusion.XlsIO.Implementation.HtmlSaveOptions.Default);
3939
stream.Dispose();
4040
workbook.Close();
4141
}
@@ -97,12 +97,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
9797

9898
#region Save as HTML
9999
//Saving the workbook
100-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.html"), FileMode.Create, FileAccess.Write);
101-
workbook.SaveAsHtml(outputStream, saveOptions);
100+
workbook.SaveAsHtml(Path.GetFullPath("Output/Output.html"), saveOptions);
102101
#endregion
103-
104-
//Dispose streams
105-
outputStream.Dispose();
106102
}
107103
{% endhighlight %}
108104

Document-Processing/Excel/Conversions/Excel-to-HTML/overview.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
3535
worksheet.SaveAsHtml(stream);
3636

3737
//Save a workbook as HTML file
38-
workbook.SaveAsHtml(stream, Syncfusion.XlsIO.Implementation.HtmlSaveOptions.Default);
38+
workbook.SaveAsHtml("Sample.html", Syncfusion.XlsIO.Implementation.HtmlSaveOptions.Default);
3939
stream.Dispose();
4040
workbook.Close();
4141
}
@@ -97,12 +97,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
9797

9898
#region Save as HTML
9999
//Saving the workbook
100-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.html"), FileMode.Create, FileAccess.Write);
101-
workbook.SaveAsHtml(outputStream, saveOptions);
100+
workbook.SaveAsHtml(Path.GetFullPath("Output/Output.html"), saveOptions);
102101
#endregion
103-
104-
//Dispose streams
105-
outputStream.Dispose();
106102
}
107103
{% endhighlight %}
108104

0 commit comments

Comments
 (0)