使用 Python via .Net 将流程图插入/创建到 Excel 中
使用 Aspose.Cells' API 插入/创建流程图,无需使用 Microsoft 或 Open Office、Adobe PDF 等任何软件。
如何使用 Python via .Net 将流程图插入/创建到 Excel 文件中
为了将流程图插入/创建到 Excel 文件中,我们将使用
Aspose.Cells for Python 通过.Net
API 这是一个功能丰富、强大且易于使用的文档操作API for Python 通过.Net 平台。API 提供Excel 文件创建、操作、转换和渲染。所有这些都不依赖于 Microsoft Office 或 Excel 应用程序。您可以使用以下命令从控制台进行安装。
命令
> pip install aspose-cells-python
使用 Python via .Net 将流程图插入/创建到 Excel 文件的步骤
您需要 Aspose.Cells 才能在您自己的环境中尝试以下工作流程。
实例化一个 Workbook 对象。(或者->加载 XLSX 文件的完整路径。)
- 通过索引选择工作表。 使用形状集合的添加 方法 在选定的工作表中插入流程图。 以 XLSX 格式保存工作簿。
系统要求
Aspose.Cells for Python via .Net 与平台无关 API 可以在任何平台上使用(Windows,Linux),只需确保系统有 Python 3.7或更高。
- 任何可以运行Python via .Net脚本的操作系统,例如Windows、Linux
- 通过 .Net 安装 Aspose.Cells for Pythonpypi,使用命令为:
$ pip install aspose-cells-python
.
插入/创建流程图 - Python via .Net
流程图类型概述
![](/cells/net/shapes/insert-flowchart-to-excel/process.png)
自选图形类型。
FLOW_CHART_PROCESS
![](/cells/net/shapes/insert-flowchart-to-excel/alternate_process.png)
自选图形类型。
FLOW_CHART_ALTERNATE_PROCESS
![](/cells/net/shapes/insert-flowchart-to-excel/decision.png)
自选图形类型。
FLOW_CHART_DECISION
![](/cells/net/shapes/insert-flowchart-to-excel/data.png)
自选图形类型。
FLOW_CHART_DATA
![](/cells/net/shapes/insert-flowchart-to-excel/predefined_process.png)
自选图形类型。
FLOW_CHART_PREDEFINED_PROCESS
![](/cells/net/shapes/insert-flowchart-to-excel/internal_storage.png)
自选图形类型。
FLOW_CHART_INTERNAL_STORAGE
![](/cells/net/shapes/insert-flowchart-to-excel/document.png)
自选图形类型。
FLOW_CHART_DOCUMENT
![](/cells/net/shapes/insert-flowchart-to-excel/multidocument.png)
自选图形类型。
FLOW_CHART_MULTIDOCUMENT
![](/cells/net/shapes/insert-flowchart-to-excel/terminator.png)
自选图形类型。
FLOW_CHART_TERMINATOR
![](/cells/net/shapes/insert-flowchart-to-excel/preparation.png)
自选图形类型。
FLOW_CHART_PREPARATION
![](/cells/net/shapes/insert-flowchart-to-excel/manual_input.png)
自选图形类型。
FLOW_CHART_MANUAL_INPUT
![](/cells/net/shapes/insert-flowchart-to-excel/manual_operation.png)
自选图形类型。
FLOW_CHART_MANUAL_OPERATION
![](/cells/net/shapes/insert-flowchart-to-excel/connector.png)
自选图形类型。
FLOW_CHART_CONNECTOR
![](/cells/net/shapes/insert-flowchart-to-excel/offpage_connector.png)
自选图形类型。
FLOW_CHART_OFFPAGE_CONNECTOR
![](/cells/net/shapes/insert-flowchart-to-excel/card.png)
自选图形类型。
FLOW_CHART_CARD
![](/cells/net/shapes/insert-flowchart-to-excel/punched_tape.png)
自选图形类型。
FLOW_CHART_PUNCHED_TAPE
![](/cells/net/shapes/insert-flowchart-to-excel/summing_junction.png)
自选图形类型。
FLOW_CHART_SUMMING_JUNCTION
![](/cells/net/shapes/insert-flowchart-to-excel/or.png)
自选图形类型。
FLOW_CHART_OR
![](/cells/net/shapes/insert-flowchart-to-excel/collate.png)
自选图形类型。
FLOW_CHART_COLLATE
![](/cells/net/shapes/insert-flowchart-to-excel/sort.png)
自选图形类型。
FLOW_CHART_SORT
![](/cells/net/shapes/insert-flowchart-to-excel/extract.png)
自选图形类型。
FLOW_CHART_EXTRACT
![](/cells/net/shapes/insert-flowchart-to-excel/merge.png)
自选图形类型。
FLOW_CHART_MERGE
![](/cells/net/shapes/insert-flowchart-to-excel/stored_data.png)
自选图形类型。
FLOW_CHART_STORED_DATA
![](/cells/net/shapes/insert-flowchart-to-excel/delay.png)
自选图形类型。
FLOW_CHART_DELAY
![](/cells/net/shapes/insert-flowchart-to-excel/sequential_access_storage.png)
自选图形类型。
FLOW_CHART_SEQUENTIAL_ACCESS_STORAGE
![](/cells/net/shapes/insert-flowchart-to-excel/magnetic_disk.png)
自选图形类型。
FLOW_CHART_MAGNETIC_DISK
![](/cells/net/shapes/insert-flowchart-to-excel/direct_access_storage.png)
自选图形类型。
FLOW_CHART_DIRECT_ACCESS_STORAGE
![](/cells/net/shapes/insert-flowchart-to-excel/display.png)
自选图形类型。
FLOW_CHART_DISPLAY