|
<< Click to Display Table of Contents >> Navigation: »No topics above this level« Python |
Écrire le fichier :
from ctypes import*
#####################################################################################
f = open('C:/temp/python.xpr', 'w') # fichier de sortie
f.write('<PREVIEW><R10><C10>Hello world!')
f.close()
####################################################################################
Différentes façons d'appeler vpxPrint :
1.import subprocess
subprocess.call(["c:/windows/system32/vpxcall", 'C:/temp/python.xpr'])
2.param = 'C:/temp/python.xpr'
arg=["vpxCall", param] # , "-LOG"
subprocess.Popen(arg)
3.xprint = cdll.LoadLibrary("xprint.dll")
xprint.printFile('C:/temp/python.xpr')