Skip to content

Commit 6b2cf21

Browse files
Merge pull request #1787 from Syncfusion-Content/development
dev to master
2 parents 4cf039a + 6cc1b8f commit 6b2cf21

File tree

580 files changed

+16663
-11244
lines changed

Some content is hidden

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

580 files changed

+16663
-11244
lines changed

Document-Processing-toc.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,16 +1340,6 @@
13401340
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/annotations/annotations-in-mobile-view">Annotations in Mobile view</a></li>
13411341
</ul>
13421342
</li>
1343-
<li>Redaction
1344-
<ul>
1345-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/Redaction/overview">Overview</a></li>
1346-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/Redaction/programmatic-support">Programmatic Support</a></li>
1347-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/Redaction/ui-interaction">UI Interaction</a></li>
1348-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/Redaction/toolbar">Toolbar</a></li>
1349-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/Redaction/mobile-view">Mobile View</a></li>
1350-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/Redaction/search-redact">Search Text and Redact</a></li>
1351-
</ul>
1352-
</li>
13531343
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es6/interaction-mode">Interaction Mode</a></li>
13541344
<li>Form Designer
13551345
<ul>
@@ -6881,14 +6871,16 @@
68816871
<ul>
68826872
<li>
68836873
Weekly Nuget Release
6884-
<ul><li><a href="/document-processing/release-notes/v31.1.23">v31.1.23</a></li><li><a href="/document-processing/release-notes/v31.1.22">v31.1.22</a></li>
6874+
<ul>
6875+
<li><a href="/document-processing/release-notes/v31.1.23">v31.1.23</a></li>
6876+
<li><a href="/document-processing/release-notes/v31.1.22">v31.1.22</a></li>
68856877
<li><a href="/document-processing/release-notes/v31.1.21">v31.1.21</a></li>
68866878
<li><a href="/document-processing/release-notes/v31.1.20">v31.1.20</a></li>
68876879
<li><a href="/document-processing/release-notes/v31.1.19">v31.1.19</a></li>
68886880
<li><a href="/document-processing/release-notes/v31.1.18">v31.1.18</a></li>
68896881
</ul>
68906882
</li>
6891-
<li><a href="/document-processing/release-notes/v31.2.9">v31.2.9 Service Pack Release</a></li>
6883+
<li><a href="/document-processing/release-notes/v31.2.12">v31.2.12 Service Pack Release</a></li>
68926884
<li><a href="/document-processing/release-notes/v31.2.2">v31.2.2 Service Pack Release</a></li>
68936885
<li><a href="/document-processing/release-notes/v31.1.17">v31.1.17 Main Release</a></li></ul></li>
68946886
<li>2025 Volume 2 - v30.*<ul><li> Weekly Nuget Release <ul><li><a href="/document-processing/release-notes/v30.2.7">v30.2.7</a></li><li><a href="/document-processing/release-notes/v30.2.6">v30.2.6</a></li><li><a href="/document-processing/release-notes/v30.2.5">v30.2.5</a></li><li><a href="/document-processing/release-notes/v30.1.42">v30.1.42</a></li><li><a href="/document-processing/release-notes/v30.1.41">v30.1.41</a></li><li><a href="/document-processing/release-notes/v30.1.40">v30.1.40</a></li><li><a href="/document-processing/release-notes/v30.1.39">v30.1.39</a></li><li><a href="/document-processing/release-notes/v30.1.38">v30.1.38</a></li></ul></li><li><a href="/document-processing/release-notes/v30.2.4">v30.2.4 Service Pack Release</a></li><li><a href="/document-processing/release-notes/v30.1.37">v30.1.37 Main Release</a></li></ul></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/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

Document-Processing/Excel/Conversions/Excel-to-Image/NET/convert-excel-to-image-in-ASP-NET-Core.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
7171
{
7272
IApplication application = excelEngine.Excel;
7373
application.DefaultVersion = ExcelVersion.Xlsx;
74-
FileStream excelStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
75-
IWorkbook workbook = application.Workbooks.Open(excelStream);
74+
IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
7675
IWorksheet worksheet = workbook.Worksheets[0];
7776

7877
//Initialize XlsIO renderer.
@@ -160,8 +159,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
160159
{
161160
IApplication application = excelEngine.Excel;
162161
application.DefaultVersion = ExcelVersion.Xlsx;
163-
FileStream excelStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
164-
IWorkbook workbook = application.Workbooks.Open(excelStream);
162+
IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
165163
IWorksheet worksheet = workbook.Worksheets[0];
166164

167165
//Initialize XlsIO renderer.

Document-Processing/Excel/Conversions/Excel-to-Image/NET/convert-excel-to-image-in-ASP-NET-MVC.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public void ConvertExcelToImage()
6060
{
6161
IApplication application = excelEngine.Excel;
6262
application.DefaultVersion = ExcelVersion.Xlsx;
63-
FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
64-
IWorkbook workbook = application.Workbooks.Open(excelStream);
63+
IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
6564
IWorksheet worksheet = workbook.Worksheets[0];
6665

6766
//Convert the Excel to Image

0 commit comments

Comments
 (0)