0
Pythonのwin32comでチャートデータテーブルへの参照を取得する方法は?Pythonのwin32comでは、チャートデータテーブルへの参照を取得する方法は?
import win32com
from MSO import constants as msoconst
Application = win32com.client.Dispatch("PowerPoint.Application")
Application.Visible = True
Presentation = Application.Presentations.Add()
FirstSlide = Presentation.Slides.Add(1, 12)
... no problem adding slides, shapes and text and setting font size and color ....
InventoryChart = FirstSlide.Shapes.AddChart2(201,msoconst.xlColumnClustered ,10,80,470,220,False) # 0 = Clustered Column, 1 = Combo Area, 2 = Clustered Column
InventoryChartData = InventoryChart.ChartData
ChartDataは動作しません:はAttributeError:「」オブジェクトが属性を持っていない「ChartData」のような
私は(PowerPointが別のウィンドウにそれをポップアップ)のデータテーブルとチャートを作成することができます
したがって、PowerPointで作成されたテーブルへの参照はどのように取得されますか?または、データに使用するテーブルを定義するにはどうすればよいですか?