我希望能够使用py2exe或类似的东西创建一个可执行文件,从excel表中获取信息并返回一个word文件。
由于我的同事在技术上受到挑战,我需要创建一个可执行文件,以便为他们完成工作。
这里有两个问题:
我必须能够将某些东西导入到代表DataNitro的python脚本中。什么模块代表DataNitro?
这合法吗?我不会在这个exe运行的每台机器上使用DataNitro许可证,除了我自己的,所以如果它甚至可能,这有点阴暗吗?
谢谢。
P.S。如果我无法做到这一点,我可能不得不使用xlrd,xlwt等。
答案 0 :(得分:1)
The best way to give non-technical users access to DataNitro is to copy the VBA interface: hook the script up to an Excel button and have users press that button to run it. (There's no difference between running a Python script with DataNitro and running VBA code from the user's point of view.)
Each person using the script would need a DataNitro license.
There's no way to make DataNitro work with py2exe, unfortunately.
Source: I'm one of the DataNitro developers.