透過 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_流程圖顯示