|
1 | | -<!-- default badges list --> |
2 | | - |
3 | | -[](https://supportcenter.devexpress.com/ticket/details/E4339) |
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 1) |
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 | | -> 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. |
12 | | - |
13 | | -This example demonstrates how to use the Spreadsheet Document API to execute the following actions: |
14 | | - |
15 | | -- Manage spreadsheet document elements (worksheets, cells, rows, and columns) |
16 | | -- Create formulas |
17 | | -- Format cells |
18 | | -- Import data from different data sources |
19 | | -- Export a workbook to PDF |
20 | | -- Print a workbook |
21 | | -- Specify the built-in and custom document properties |
22 | | - |
23 | | -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. |
24 | | - |
25 | | - |
26 | | - |
27 | | -## Files to Look At |
28 | | - |
29 | | -| C# | Visual Basic | |
30 | | -|---|---| |
31 | | -| [CellActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/CellActions.cs) | [CellActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/CellActions.vb) | |
32 | | -| [DocumentPropertiesActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/DocumentPropertiesActions.cs) | [DocumentPropertiesActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/DocumentPropertiesActions.vb) | |
33 | | -| [ExportActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/ExportActions.cs) | [ExportActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/ExportActions.vb) | |
34 | | -| [FormattingActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/FormattingActions.cs) | [FormattingActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/FormattingActions.vb) | |
35 | | -| [FormulaActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/FormulaActions.cs) | [FormulaActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/FormulaActions.vb) | |
36 | | -| [ImportActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/ImportActions.cs) | [ImportActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/ImportActions.vb) | |
37 | | -| [PrintingActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/PrintingActions.cs) | [PrintingActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/PrintingActions.vb) | |
38 | | -| [RowAndColumnActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/RowAndColumnActions.cs) | [RowAndColumnActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/RowAndColumnActions.vb) | |
39 | | -| [WorksheetActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/WorksheetActions.cs) | [WorksheetActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/WorksheetActions.vb) | |
40 | | - |
41 | | -## Documentation |
42 | | - |
43 | | -- [Worksheets](https://docs.devexpress.com/OfficeFileAPI/14930/spreadsheet-document-api/examples/worksheets) |
44 | | -- [Rows and Columns](https://docs.devexpress.com/OfficeFileAPI/14938/spreadsheet-document-api/examples/rows-and-columns) |
45 | | -- [Cells](https://docs.devexpress.com/OfficeFileAPI/14944/spreadsheet-document-api/examples/cells) |
46 | | -- [Formulas](https://docs.devexpress.com/OfficeFileAPI/14928/spreadsheet-document-api/spreadsheet-formulas) |
47 | | -- [Cell Formatting](https://docs.devexpress.com/OfficeFileAPI/14915/spreadsheet-document-api/cell-basics/formatting-cells) |
48 | | -- [Import and Export Data](https://docs.devexpress.com/OfficeFileAPI/118182/spreadsheet-document-api/examples/import-and-export-data) |
49 | | -- [Printing](https://docs.devexpress.com/OfficeFileAPI/15532/spreadsheet-document-api/examples/printing) |
50 | | -- [Specify Document Properties](https://docs.devexpress.com/OfficeFileAPI/117097/spreadsheet-document-api/examples/workbooks/how-to-specify-document-properties) |
51 | | - |
52 | | -## More Examples |
53 | | - |
54 | | -- [Spreadsheet Document API - Part 2](https://github.com/DevExpress-Examples/spreadsheet-document-api-examples-part-2-t217615) |
55 | | - |
56 | | -<!-- feedback --> |
57 | | -## Does this example address your development requirements/objectives? |
58 | | - |
59 | | -[<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-part1&~~~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-part1&~~~was_helpful=no) |
60 | | - |
61 | | -(you will be redirected to DevExpress.com to submit your response) |
62 | | -<!-- feedback end --> |
| 1 | +<!-- default badges list --> |
| 2 | + |
| 3 | +[](https://supportcenter.devexpress.com/ticket/details/E4339) |
| 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 1) |
| 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 | +> 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. |
| 12 | + |
| 13 | +This example demonstrates how to use the Spreadsheet Document API to execute the following actions: |
| 14 | + |
| 15 | +- Manage spreadsheet document elements (worksheets, cells, rows, and columns) |
| 16 | +- Create formulas |
| 17 | +- Format cells |
| 18 | +- Import data from different data sources |
| 19 | +- Export a workbook to PDF |
| 20 | +- Print a workbook |
| 21 | +- Specify the built-in and custom document properties |
| 22 | + |
| 23 | +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. |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +## Files to Look At |
| 28 | + |
| 29 | +| C# | Visual Basic | |
| 30 | +|---|---| |
| 31 | +| [CellActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/CellActions.cs) | [CellActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/CellActions.vb) | |
| 32 | +| [DocumentPropertiesActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/DocumentPropertiesActions.cs) | [DocumentPropertiesActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/DocumentPropertiesActions.vb) | |
| 33 | +| [ExportActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/ExportActions.cs) | [ExportActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/ExportActions.vb) | |
| 34 | +| [FormattingActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/FormattingActions.cs) | [FormattingActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/FormattingActions.vb) | |
| 35 | +| [FormulaActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/FormulaActions.cs) | [FormulaActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/FormulaActions.vb) | |
| 36 | +| [ImportActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/ImportActions.cs) | [ImportActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/ImportActions.vb) | |
| 37 | +| [PrintingActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/PrintingActions.cs) | [PrintingActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/PrintingActions.vb) | |
| 38 | +| [RowAndColumnActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/RowAndColumnActions.cs) | [RowAndColumnActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/RowAndColumnActions.vb) | |
| 39 | +| [WorksheetActions.cs](./CS/SpreadsheetExamples/SpreadsheetActions/WorksheetActions.cs) | [WorksheetActions.vb](./VB/SpreadsheetExamples/SpreadsheetActions/WorksheetActions.vb) | |
| 40 | + |
| 41 | +## Documentation |
| 42 | + |
| 43 | +- [Worksheets](https://docs.devexpress.com/OfficeFileAPI/14930/spreadsheet-document-api/examples/worksheets) |
| 44 | +- [Rows and Columns](https://docs.devexpress.com/OfficeFileAPI/14938/spreadsheet-document-api/examples/rows-and-columns) |
| 45 | +- [Cells](https://docs.devexpress.com/OfficeFileAPI/14944/spreadsheet-document-api/examples/cells) |
| 46 | +- [Formulas](https://docs.devexpress.com/OfficeFileAPI/14928/spreadsheet-document-api/spreadsheet-formulas) |
| 47 | +- [Cell Formatting](https://docs.devexpress.com/OfficeFileAPI/14915/spreadsheet-document-api/cell-basics/formatting-cells) |
| 48 | +- [Import and Export Data](https://docs.devexpress.com/OfficeFileAPI/118182/spreadsheet-document-api/examples/import-and-export-data) |
| 49 | +- [Printing](https://docs.devexpress.com/OfficeFileAPI/15532/spreadsheet-document-api/examples/printing) |
| 50 | +- [Specify Document Properties](https://docs.devexpress.com/OfficeFileAPI/117097/spreadsheet-document-api/examples/workbooks/how-to-specify-document-properties) |
| 51 | + |
| 52 | +## More Examples |
| 53 | + |
| 54 | +- [Spreadsheet Document API - Part 2](https://github.com/DevExpress-Examples/spreadsheet-document-api-examples-part-2-t217615) |
| 55 | + |
| 56 | +<!-- feedback --> |
| 57 | +## Does this example address your development requirements/objectives? |
| 58 | + |
| 59 | +[<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-part1&~~~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-part1&~~~was_helpful=no) |
| 60 | + |
| 61 | +(you will be redirected to DevExpress.com to submit your response) |
| 62 | +<!-- feedback end --> |
0 commit comments