|
1 | | -<!-- default badges list --> |
2 | | - |
3 | | -[](https://supportcenter.devexpress.com/ticket/details/T217615) |
4 | | -[](https://docs.devexpress.com/GeneralInformation/403183) |
5 | | -[](#does-this-example-address-your-development-requirementsobjectives) |
6 | | -<!-- default badges end --> |
7 | | -# Spreadsheet Document API – How to Process Excel Workbooks in Code (Part 2) |
8 | | - |
9 | | -The [DevExpress Spreadsheet Document API](https://docs.devexpress.com/OfficeFileAPI/14912/spreadsheet-document-api) is a non-visual library that allows you to generate, import, export, modify, and print Microsoft Excel workbooks in code. |
10 | | - |
11 | | ->[!IMPORTANT] |
12 | | -> You need a license for the [DevExpress Office File API Subscription](https://www.devexpress.com/products/net/office-file-api/) or [DevExpress Universal Subscription](https://www.devexpress.com/subscriptions/universal.xml) to use this library in production code. |
13 | | - |
14 | | -This example demonstrates how to use the Spreadsheet Document API to execute the following actions: |
15 | | - |
16 | | -- Apply filters to a worksheet range (a dynamic filter, the "Top 10" filter, number, text, and date filters) |
17 | | -- Save a worksheet in HTML format |
18 | | -- Group and ungroup worksheet rows and columns |
19 | | -- Outline worksheet data automatically |
20 | | -- Create subtotals for a cell range |
21 | | -- Insert a picture into a worksheet and modify an embedded picture |
22 | | -- Protect and unprotect a workbook or a worksheet |
23 | | -- Protect specific worksheet ranges |
24 | | -- Sort data in a range |
25 | | -- Manage tables and table styles |
26 | | -- Search for specific data in a worksheet |
27 | | - |
28 | | -The application form contains the list of supported operations. A user can select an operation and click the **Run** button to view the resulting spreadsheet document in Microsoft Excel. |
29 | | - |
30 | | - |
31 | | - |
32 | | -<!-- default file list --> |
33 | | - |
34 | | -## Files to Look At |
35 | | - |
36 | | -| C# | Visual Basic | |
37 | | -|---|---| |
38 | | -| [AutoFilterActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/AutoFilterActions.cs) | [AutoFilterActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/AutoFilterActions.vb) | |
39 | | -| [CustomXmlActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/CustomXmlPartActions.cs) | [CustomXmlPartActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/CustomXmlPartActions.vb) | |
40 | | -| [DataValidationActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/DataValidationActions.cs) | [DataValidationActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/DataValidationActions.vb) | |
41 | | -| [ExportActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/ExportActions.cs) | [ExportActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/ExportActions.vb) | |
42 | | -| [GroupAndOutlineActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/GroupAndOutlineActions.cs)| [GroupAndOutlineActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/GroupAndOutlineActions.vb) | |
43 | | -| [PictureActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/PictureActions.cs) | [PictureActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/PictureActions.vb) | |
44 | | -| [ProtectionActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/ProtectionActions.cs) | [ProtectionActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/ProtectionActions.vb) | |
45 | | -| [SearchActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/SearchActions.cs) | [SearchActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/SearchActions.vb) | |
46 | | -| [SortActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/SortActions.cs) | [SortActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/SortActions.vb) | |
47 | | -| [TableActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.cs) | [TableActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.vb) | |
48 | | - |
49 | | -<!-- default file list end --> |
50 | | - |
51 | | -## Documentation |
52 | | - |
53 | | -- [Filter Data](https://docs.devexpress.com/OfficeFileAPI/113729/spreadsheet-document-api/examples/filtering) |
54 | | -- [Custom XML parts](https://docs.devexpress.com/OfficeFileAPI/DevExpress.Spreadsheet.Workbook.CustomXmlParts) |
55 | | -- [Validate Data in Spreadsheet Cells](https://docs.devexpress.com/OfficeFileAPI/401430/spreadsheet-document-api/data-validation) |
56 | | -- [Export a Document to HTML](https://docs.devexpress.com/OfficeFileAPI/113724/spreadsheet-document-api/examples/workbooks/how-to-export-a-document-to-html) |
57 | | -- [Group Data](https://docs.devexpress.com/OfficeFileAPI/113730/spreadsheet-document-api/examples/grouping) |
58 | | -- [Pictures](https://docs.devexpress.com/OfficeFileAPI/113733/spreadsheet-document-api/examples/pictures) |
59 | | -- [Protection](https://docs.devexpress.com/OfficeFileAPI/113734/spreadsheet-document-api/examples/protection) |
60 | | -- [Search](https://docs.devexpress.com/OfficeFileAPI/113731/spreadsheet-document-api/examples/search) |
61 | | -- [Sorting](https://docs.devexpress.com/OfficeFileAPI/113728/spreadsheet-document-api/examples/sorting) |
62 | | -- [Tables](https://docs.devexpress.com/OfficeFileAPI/403308/spreadsheet-document-api/spreadsheet-tables) |
63 | | - |
64 | | -## More Examples |
65 | | - |
66 | | -- [Spreadsheet Document API - Part 1](https://github.com/DevExpress-Examples/spreadsheet-document-api-examples-part1) |
67 | | - |
68 | | -<!-- feedback --> |
69 | | -## Does this example address your development requirements/objectives? |
70 | | - |
71 | | -[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=spreadsheet-document-api-examples-part2&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=spreadsheet-document-api-examples-part2&~~~was_helpful=no) |
72 | | - |
73 | | -(you will be redirected to DevExpress.com to submit your response) |
74 | | -<!-- feedback end --> |
| 1 | +<!-- default badges list --> |
| 2 | + |
| 3 | +[](https://supportcenter.devexpress.com/ticket/details/T217615) |
| 4 | +[](https://docs.devexpress.com/GeneralInformation/403183) |
| 5 | +[](#does-this-example-address-your-development-requirementsobjectives) |
| 6 | +<!-- default badges end --> |
| 7 | +# Spreadsheet Document API – How to Process Excel Workbooks in Code (Part 2) |
| 8 | + |
| 9 | +The [DevExpress Spreadsheet Document API](https://docs.devexpress.com/OfficeFileAPI/14912/spreadsheet-document-api) is a non-visual library that allows you to generate, import, export, modify, and print Microsoft Excel workbooks in code. |
| 10 | + |
| 11 | +>[!IMPORTANT] |
| 12 | +> You need a license for the [DevExpress Office File API Subscription](https://www.devexpress.com/products/net/office-file-api/) or [DevExpress Universal Subscription](https://www.devexpress.com/subscriptions/universal.xml) to use this library in production code. |
| 13 | + |
| 14 | +This example demonstrates how to use the Spreadsheet Document API to execute the following actions: |
| 15 | + |
| 16 | +- Apply filters to a worksheet range (a dynamic filter, the "Top 10" filter, number, text, and date filters) |
| 17 | +- Save a worksheet in HTML format |
| 18 | +- Group and ungroup worksheet rows and columns |
| 19 | +- Outline worksheet data automatically |
| 20 | +- Create subtotals for a cell range |
| 21 | +- Insert a picture into a worksheet and modify an embedded picture |
| 22 | +- Protect and unprotect a workbook or a worksheet |
| 23 | +- Protect specific worksheet ranges |
| 24 | +- Sort data in a range |
| 25 | +- Manage tables and table styles |
| 26 | +- Search for specific data in a worksheet |
| 27 | + |
| 28 | +The application form contains the list of supported operations. A user can select an operation and click the **Run** button to view the resulting spreadsheet document in Microsoft Excel. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +<!-- default file list --> |
| 33 | + |
| 34 | +## Files to Look At |
| 35 | + |
| 36 | +| C# | Visual Basic | |
| 37 | +|---|---| |
| 38 | +| [AutoFilterActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/AutoFilterActions.cs) | [AutoFilterActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/AutoFilterActions.vb) | |
| 39 | +| [CustomXmlActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/CustomXmlPartActions.cs) | [CustomXmlPartActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/CustomXmlPartActions.vb) | |
| 40 | +| [DataValidationActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/DataValidationActions.cs) | [DataValidationActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/DataValidationActions.vb) | |
| 41 | +| [ExportActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/ExportActions.cs) | [ExportActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/ExportActions.vb) | |
| 42 | +| [GroupAndOutlineActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/GroupAndOutlineActions.cs)| [GroupAndOutlineActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/GroupAndOutlineActions.vb) | |
| 43 | +| [PictureActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/PictureActions.cs) | [PictureActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/PictureActions.vb) | |
| 44 | +| [ProtectionActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/ProtectionActions.cs) | [ProtectionActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/ProtectionActions.vb) | |
| 45 | +| [SearchActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/SearchActions.cs) | [SearchActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/SearchActions.vb) | |
| 46 | +| [SortActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/SortActions.cs) | [SortActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/SortActions.vb) | |
| 47 | +| [TableActions.cs](./CS/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.cs) | [TableActions.vb](./VB/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.vb) | |
| 48 | + |
| 49 | +<!-- default file list end --> |
| 50 | + |
| 51 | +## Documentation |
| 52 | + |
| 53 | +- [Filter Data](https://docs.devexpress.com/OfficeFileAPI/113729/spreadsheet-document-api/examples/filtering) |
| 54 | +- [Custom XML parts](https://docs.devexpress.com/OfficeFileAPI/DevExpress.Spreadsheet.Workbook.CustomXmlParts) |
| 55 | +- [Validate Data in Spreadsheet Cells](https://docs.devexpress.com/OfficeFileAPI/401430/spreadsheet-document-api/data-validation) |
| 56 | +- [Export a Document to HTML](https://docs.devexpress.com/OfficeFileAPI/113724/spreadsheet-document-api/examples/workbooks/how-to-export-a-document-to-html) |
| 57 | +- [Group Data](https://docs.devexpress.com/OfficeFileAPI/113730/spreadsheet-document-api/examples/grouping) |
| 58 | +- [Pictures](https://docs.devexpress.com/OfficeFileAPI/113733/spreadsheet-document-api/examples/pictures) |
| 59 | +- [Protection](https://docs.devexpress.com/OfficeFileAPI/113734/spreadsheet-document-api/examples/protection) |
| 60 | +- [Search](https://docs.devexpress.com/OfficeFileAPI/113731/spreadsheet-document-api/examples/search) |
| 61 | +- [Sorting](https://docs.devexpress.com/OfficeFileAPI/113728/spreadsheet-document-api/examples/sorting) |
| 62 | +- [Tables](https://docs.devexpress.com/OfficeFileAPI/403308/spreadsheet-document-api/spreadsheet-tables) |
| 63 | + |
| 64 | +## More Examples |
| 65 | + |
| 66 | +- [Spreadsheet Document API - Part 1](https://github.com/DevExpress-Examples/spreadsheet-document-api-examples-part1) |
| 67 | + |
| 68 | +<!-- feedback --> |
| 69 | +## Does this example address your development requirements/objectives? |
| 70 | + |
| 71 | +[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=spreadsheet-document-api-examples-part2&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=spreadsheet-document-api-examples-part2&~~~was_helpful=no) |
| 72 | + |
| 73 | +(you will be redirected to DevExpress.com to submit your response) |
| 74 | +<!-- feedback end --> |
0 commit comments