Skip to content

Commit 659dd7f

Browse files
authored
Merge branch 'hotfix/hotfix-v31.2.2' into 972568-BlazorH
2 parents 487ba76 + 2b388ae commit 659dd7f

File tree

145 files changed

+7500
-2305
lines changed

Some content is hidden

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

145 files changed

+7500
-2305
lines changed

Document-Processing-toc.html

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,24 @@
949949
</ul>
950950
</li>
951951
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/toolbar">Toolbar</a></li>
952-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/mobile-toolbar">Mobile Toolbar Interface</a></li>
953-
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/navigation">Navigation</a></li>
952+
<li>Toolbar Customization
953+
<ul>
954+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/toolbar-customization/primary-toolbar-customization">Primary Toolbar</a></li>
955+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/toolbar-customization/annotation-toolbar-customization">Annotation Toolbar</a></li>
956+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/toolbar-customization/form-designer-toolbar-customization">Form Designer Toolbar</a></li>
957+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf/toolbar-organize-page">Organize Page Toolbar</a></li>
958+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/toolbar-customization/mobile-toolbar">Mobile Toolbar</a></li>
959+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/toolbar-customization/custom-toolbar">Custom Toolbar</a></li>
960+
</ul>
961+
</li>
962+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/navigation">Interactive PDF Navigation</a>
963+
<ul>
964+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/interactive-pdf-navigation/page-navigation">Page </a></li>
965+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/interactive-pdf-navigation/bookmark-navigation">Bookmark</a></li>
966+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/interactive-pdf-navigation/page-thumbnail-navigation">Page Thumbnail</a></li>
967+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/interactive-pdf-navigation/hyperlink-navigation">Hyperlink Navigation</a></li>
968+
</ul>
969+
</li>
954970
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/magnification">Magnification</a></li>
955971
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/accessibility">Accessibility</a></li>
956972
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/text-search">Text Search</a></li>
@@ -969,6 +985,7 @@
969985
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/annotations/line-angle-constraints">Line Angle Constraint</a></li>
970986
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/annotations/comments">Comments</a></li>
971987
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/annotations/signature-annotation">Handwritten signature</a></li>
988+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/annotations/annotation-event">Annotations Events</a></li>
972989
</ul>
973990
</li>
974991
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/interaction-mode">Interaction Mode</a></li>
@@ -977,12 +994,27 @@
977994
<ul>
978995
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/form-designer/create-programmatically">Create form fields programmatically</a></li>
979996
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/form-designer/create-with-user-interface-interaction">Create form fields with UI interaction</a></li>
997+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/toolbar-customization/form-designer-toolbar-customization">Form Designer Toolbar</a></li>
980998
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/form-designer/form-field-events">Form Field events</a></li>
999+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/custom-fonts">Custom fonts</a></li>
1000+
</ul>
1001+
</li>
1002+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/form-filling">Form Filling</a></li>
1003+
<li>Organize Pages
1004+
<ul>
1005+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf-overview">Overview</a></li>
1006+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf/programmatic-support-for-organize-page">Programmatic Support</a></li>
1007+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf/ui-interactions-organize-page">UI Interactions</a></li>
1008+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf/toolbar-organize-page">Toolbar</a></li>
1009+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf/organize-page-mobile-view">Mobile View</a></li>
1010+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf/organize-pdf-events">Events</a></li>
9811011
</ul>
9821012
</li>
9831013
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/organize-pdf">Organize Pages</a></li>
9841014
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/print">Print</a></li>
9851015
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/download">Download</a></li>
1016+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/event">Event</a></li>
1017+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/textselection">Text Selection</a></li>
9861018
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/globalization">Globalization</a></li>
9871019
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/ej1-api-migration">Migration from Essential JS 1</a></li>
9881020
<li>
@@ -994,8 +1026,7 @@
9941026
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/server-deployment/how-to-deploy-pdfviewer-server-app-in-azure-app-service-from-visual-studio">How to Deploy PdfViewer Server App in Azure App Service from Visual Studio</a></li>
9951027
</ul>
9961028
</li>
997-
<li>
998-
How To
1029+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to-overview">How to</a>
9991030
<ul>
10001031
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/create-pdfviewer-service">Create PDF Viewer Service in ASPNET MVC</a></li>
10011032
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/create-pdfviewer-service-core">Create PDF Viewer Service in ASPNET Core</a></li>
@@ -1046,6 +1077,10 @@
10461077
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/extract-text-js">Extract Text</a></li>
10471078
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/enable-text-selection-js">Dynamically Enable or Disable Text Selection</a></li>
10481079
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/show-hide-annotation-js">Show and Hide Annotation</a></li>
1080+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/download-document-on-window-closing">Download PDF document on closing browser window</a></li>
1081+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/focus-on-a-form-field-after-loading">Focus on a form field on document load</a></li>
1082+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/use-local-script-and-style-references">Use local script and style references</a></li>
1083+
<li><a href="/document-processing/pdf/pdf-viewer/javascript-es5/how-to/add-new-page-to-the-pdf-document">Add new page to PDF document</a></li>
10491084
</ul>
10501085
</li>
10511086
<li>
@@ -6763,7 +6798,7 @@
67636798
<ul>
67646799
<li>
67656800
Weekly Nuget Release
6766-
<ul>
6801+
<ul><li><a href="/document-processing/release-notes/v31.2.4">v31.2.4</a></li>
67676802
<li><a href="/document-processing/release-notes/v31.2.3">v31.2.3</a></li>
67686803
<li><a href="/document-processing/release-notes/v31.1.22">v31.1.22</a></li>
67696804
<li><a href="/document-processing/release-notes/v31.1.21">v31.1.21</a></li>

Document-Processing/Excel/Excel-Library/NET/Working-with-Formulas.md

Lines changed: 17 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
9090

9191
#region Save
9292
//Saving the workbook
93-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
94-
workbook.SaveAs(outputStream);
93+
workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
9594
#endregion
96-
97-
//Dispose streams
98-
outputStream.Dispose();
9995
}
10096
{% endhighlight %}
10197

@@ -163,12 +159,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
163159

164160
#region Save
165161
//Saving the workbook
166-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
167-
workbook.SaveAs(outputStream);
162+
workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
168163
#endregion
169-
170-
//Dispose streams
171-
outputStream.Dispose();
172164
}
173165
{% endhighlight %}
174166

@@ -261,12 +253,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
261253

262254
#region Save
263255
//Saving the workbook
264-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
265-
workbook.SaveAs(outputStream);
256+
workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
266257
#endregion
267-
268-
//Dispose streams
269-
outputStream.Dispose();
270258
}
271259
{% endhighlight %}
272260

@@ -344,12 +332,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
344332

345333
#region Save
346334
//Saving the workbook
347-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
348-
workbook.SaveAs(outputStream);
335+
workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
349336
#endregion
350-
351-
//Dispose streams
352-
outputStream.Dispose();
353337
}
354338
//Output
355339

@@ -469,12 +453,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
469453

470454
#region Save
471455
//Saving the workbook
472-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
473-
workbook.SaveAs(outputStream);
456+
workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
474457
#endregion
475-
476-
//Dispose streams
477-
outputStream.Dispose();
478458
}
479459
{% endhighlight %}
480460

@@ -537,12 +517,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
537517

538518
#region Save
539519
//Saving the workbook
540-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
541-
workbook.SaveAs(outputStream);
520+
workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
542521
#endregion
543-
544-
//Dispose streams
545-
outputStream.Dispose();
546522
}
547523
{% endhighlight %}
548524

@@ -615,12 +591,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
615591

616592
#region Save
617593
//Saving the workbook
618-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/IncrementalFormula.xlsx"), FileMode.Create, FileAccess.Write);
619-
workbook.SaveAs(outputStream);
594+
workbook.SaveAs(Path.GetFullPath("Output/IncrementalFormula.xlsx"));
620595
#endregion
621-
622-
//Dispose streams
623-
outputStream.Dispose();
624596
}
625597
{% endhighlight %}
626598

@@ -686,12 +658,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
686658

687659
#region Save
688660
//Saving the workbook
689-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/ExternalFormula.xlsx"), FileMode.Create, FileAccess.Write);
690-
workbook.SaveAs(outputStream);
661+
workbook.SaveAs(Path.GetFullPath("Output/ExternalFormula.xlsx"));
691662
#endregion
692-
693-
//Dispose streams
694-
outputStream.Dispose();
695663
}
696664
{% endhighlight %}
697665

@@ -768,12 +736,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
768736

769737
#region Save
770738
//Saving the workbook
771-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/CalculatedColumn.xlsx"), FileMode.Create, FileAccess.Write);
772-
workbook.SaveAs(outputStream);
739+
workbook.SaveAs(Path.GetFullPath("Output/CalculatedColumn.xlsx"));
773740
#endregion
774-
775-
//Dispose streams
776-
outputStream.Dispose();
777741
}
778742
{% endhighlight %}
779743

@@ -2098,10 +2062,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
20982062
//Use the function. The expected result is 30
20992063
sheet.Range["A3"].Formula = "AddInFunction(10,20)";
21002064

2101-
//Saving the workbook as stream
2102-
FileStream stream = new FileStream("AddIn.xlsx", FileMode.Create, FileAccess.ReadWrite);
2103-
workbook.SaveAs(stream);
2104-
stream.Dispose();
2065+
//Saving the workbook
2066+
workbook.SaveAs(Path.GetFullPath("Output/AddIn.xlsx"));
21052067
}
21062068
{% endhighlight %}
21072069

@@ -2251,12 +2213,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
22512213

22522214
#region Save
22532215
//Saving the workbook
2254-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
2255-
workbook.SaveAs(outputStream);
2216+
workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
22562217
#endregion
2257-
2258-
//Dispose streams
2259-
outputStream.Dispose();
22602218
}
22612219
{% endhighlight %}
22622220

@@ -2362,22 +2320,17 @@ Following code illustrates on how to ignore or set error indicators.
23622320
using (ExcelEngine excelEngine = new ExcelEngine())
23632321
{
23642322
IApplication application = excelEngine.Excel;
2365-
application.DefaultVersion = ExcelVersion.Xlsx;
2366-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
2367-
IWorkbook workbook = application.Workbooks.Open(inputStream);
2323+
application.DefaultVersion = ExcelVersion.Xlsx;
2324+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
23682325
IWorksheet sheet = workbook.Worksheets[0];
23692326

23702327
//Sets warning if number is entered as text.
23712328
sheet.Range["A2:D2"].IgnoreErrorOptions = ExcelIgnoreError.NumberAsText;
23722329

23732330
#region Save
23742331
//Saving the workbook
2375-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/FormulaAuditing.xlsx"), FileMode.Create, FileAccess.Write);
2376-
workbook.SaveAs(outputStream);
2332+
workbook.SaveAs(Path.GetFullPath("Output/FormulaAuditing.xlsx"));
23772333
#endregion
2378-
2379-
//Dispose streams
2380-
outputStream.Dispose();
23812334
}
23822335
{% endhighlight %}
23832336

@@ -2455,12 +2408,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
24552408

24562409
#region Save
24572410
//Saving the workbook
2458-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/CalculationMode.xlsx"), FileMode.Create, FileAccess.Write);
2459-
workbook.SaveAs(outputStream);
2411+
workbook.SaveAs(Path.GetFullPath("Output/CalculationMode.xlsx"));
24602412
#endregion
2461-
2462-
//Dispose streams
2463-
outputStream.Dispose();
24642413
}
24652414
{% endhighlight %}
24662415

@@ -2551,12 +2500,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
25512500

25522501
#region Save
25532502
//Saving the workbook
2554-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Iteration.xlsx"), FileMode.Create, FileAccess.Write);
2555-
workbook.SaveAs(outputStream);
2503+
workbook.SaveAs(Path.GetFullPath("Output/Iteration.xlsx"));
25562504
#endregion
2557-
2558-
//Dispose streams
2559-
outputStream.Dispose();
25602505
}
25612506
{% endhighlight %}
25622507

0 commit comments

Comments
 (0)