<< Click to Display Table of Contents >> Navigation: »No topics above this level« Python |
Write the file:
from ctypes import*
#####################################################################################
f = open('C:/temp/python.xpr', 'w') # output file
f.write('<PREVIEW><R10><C10>Hello world!')
f.close()
####################################################################################
Different ways to call 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')