通过 C++ 将流程图插入 Excel
使用服务器端的本机高性能插入对象 Aspose.Cells for C++ API,无需使用任何软件,例如 Microsoft 或 Adobe PDF。
如何使用 C++ 将流程图插入 Excel 文件
为了将流程图插入 Excel 文件,我们将使用
API这是一个功能丰富、功能强大且易于使用的文档搜索API for C++平台。您可以直接下载最新版本,打开即可
包管理器,搜索 Aspose.Cells.Cpp 并安装。您还可以从包管理器控制台使用以下命令。
命令
PM> Install-Package Aspose.Cells.Cpp
通过 C++ 将流程图插入 Excel 文件的步骤
实例化一个 Workbook 对象。(或者->加载 XLSX 文件的完整路径。)
- 通过索引选择工作表。
- 使用 添加方法 在选定的工作表中插入流程图 以 XLSX 格式保存工作簿。
系统要求
Aspose.Cells for C++ 支持所有主要平台和操作系统。请确保您具备以下先决条件。
- Microsoft Windows 或具有 C++ 运行时环境的兼容操作系统,适用于 Windows 32 位、Windows 64 位和 Linux 64 位。
- 在项目中添加对 Aspose.Cells for C++ DLL 的引用。
下面的示例代码演示了如何插入“多文档”。更多类型请参考下面的“流程图类型概述”。
插入流程图 - C++
流程图类型概述
![](/cells/net/shapes/insert-flowchart-to-excel/process.png)
自选图形类型::
AutoShapeType_FlowChartProcess
![](/cells/net/shapes/insert-flowchart-to-excel/alternate_process.png)
自选图形类型::
AutoShapeType_FlowChartAlternateProcess
![](/cells/net/shapes/insert-flowchart-to-excel/decision.png)
自选图形类型::
AutoShapeType_FlowChartDecision
![](/cells/net/shapes/insert-flowchart-to-excel/data.png)
自选图形类型::
AutoShapeType_FlowChartData
![](/cells/net/shapes/insert-flowchart-to-excel/predefined_process.png)
自选图形类型::
AutoShapeType_FlowChart预定义流程
![](/cells/net/shapes/insert-flowchart-to-excel/internal_storage.png)
自选图形类型::
AutoShapeType_FlowChartInternalStorage
![](/cells/net/shapes/insert-flowchart-to-excel/document.png)
自选图形类型::
AutoShapeType_FlowChartDocument
![](/cells/net/shapes/insert-flowchart-to-excel/multidocument.png)
自选图形类型::
AutoShapeType_FlowChart多文档
![](/cells/net/shapes/insert-flowchart-to-excel/terminator.png)
自选图形类型::
AutoShapeType_FlowChartTerminator
![](/cells/net/shapes/insert-flowchart-to-excel/preparation.png)
自选图形类型::
AutoShapeType_FlowChartPreparation
![](/cells/net/shapes/insert-flowchart-to-excel/manual_input.png)
自选图形类型::
AutoShapeType_FlowChartManualInput
![](/cells/net/shapes/insert-flowchart-to-excel/manual_operation.png)
自选图形类型::
AutoShapeType_FlowChart手动操作
![](/cells/net/shapes/insert-flowchart-to-excel/connector.png)
自选图形类型::
AutoShapeType_FlowChartConnector
![](/cells/net/shapes/insert-flowchart-to-excel/offpage_connector.png)
自选图形类型::
AutoShapeType_FlowChartOffpageConnector
![](/cells/net/shapes/insert-flowchart-to-excel/card.png)
自选图形类型::
AutoShapeType_FlowChartCard
![](/cells/net/shapes/insert-flowchart-to-excel/punched_tape.png)
自选图形类型::
AutoShapeType_FlowChartPunchedTape
![](/cells/net/shapes/insert-flowchart-to-excel/summing_junction.png)
自选图形类型::
AutoShapeType_FlowChartSummingJunction
![](/cells/net/shapes/insert-flowchart-to-excel/or.png)
自选图形类型::
AutoShapeType_FlowChartOr
![](/cells/net/shapes/insert-flowchart-to-excel/collate.png)
自选图形类型::
AutoShapeType_FlowChartCollate
![](/cells/net/shapes/insert-flowchart-to-excel/sort.png)
自选图形类型::
AutoShapeType_FlowChartSort
![](/cells/net/shapes/insert-flowchart-to-excel/extract.png)
自选图形类型::
AutoShapeType_FlowChartExtract
![](/cells/net/shapes/insert-flowchart-to-excel/merge.png)
自选图形类型::
AutoShapeType_FlowChartMerge
![](/cells/net/shapes/insert-flowchart-to-excel/stored_data.png)
自选图形类型::
AutoShapeType_FlowChartStoredData
![](/cells/net/shapes/insert-flowchart-to-excel/delay.png)
自选图形类型::
AutoShapeType_FlowChartDelay
![](/cells/net/shapes/insert-flowchart-to-excel/sequential_access_storage.png)
自选图形类型::
AutoShapeType_FlowChartSequentialAccessStorage
![](/cells/net/shapes/insert-flowchart-to-excel/magnetic_disk.png)
自选图形类型::
AutoShapeType_FlowChartMagneticDisk
![](/cells/net/shapes/insert-flowchart-to-excel/direct_access_storage.png)
自选图形类型::
AutoShapeType_FlowChartDirectAccessStorage
![](/cells/net/shapes/insert-flowchart-to-excel/display.png)
自选图形类型::
AutoShapeType_流程图显示