Is there a better way (besides COM) to remote-control Excel?

前端 未结 5 473
有刺的猬
有刺的猬 2021-01-07 08:55

I\'m working on a regression-testing tool that will validate a very large number of Excel spreadsheets. At the moment I control them via COM from a Python script using the l

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-07 09:30

    You could use Jython with the JExcelApi (http://jexcelapi.sourceforge.net/) to control your Excel application. I've been considering implementing this solution with one of my PyQt projects, but haven't gotten around to trying it yet. I have effectively used the JExcelApi in Java applications before, but have not used Jython (though I know you can import Java classes).

    NOTE: the JExcelApi may be COM under the hood (I'm not sure).

提交回复
热议问题