Charts from Excel to PowerPoint with Python

后端 未结 3 1326
盖世英雄少女心
盖世英雄少女心 2020-12-14 23:53

I have an excel workbook that is created using an excellent \"xlsxwriter\" module. In this workbook, there about about 200 embedded charts. I am now trying to export all tho

3条回答
  •  臣服心动
    2020-12-15 00:26

    I don't have enough reputation to comment but if you get the same issue as @R__raki__ then you can use the integer value defined by the VBA reference. For this case it would be 12.

    So replace

    Slide=presentation.Slides.Add(presentation.Slides.Count+1,constants.ppLayoutBlank)
    

    with

    Slide=presentation.Slides.Add(presentation.Slides.Count+1,12)
    

    See here for more.

提交回复
热议问题