FAQ: TFORMer SDK
Come posso stampare un report TFORMer con Python?
Come posso stampare un report TFORMer con Python?
Per stampare un report TFORMer con Python potete usare il seguente script come esempio:
from ctypes import *
FormFile = "c:/pathto/formfile.tff"
DataFile = "c:/pathto/importdata.csv"
TF_dll = oledll.LoadLibrary("TFormer8.dll")
TF_dll.TFormer_LicenseMe("Your Licensee Name ", 4, 1,"Your Key" )
htform = TF_dll.TFormer_Init(0)
rm = TF_dll.TFormer_SetRepositoryName(htform, FormFile)
rm = TF_dll.TFormer_ResetData(htform)
rm = TF_dll.TFormer_SetTxtDataFile(htform, DataFile, c_char(","), c_char(" "))
rm = TF_dll.TFormer_SetCopies(htform,1)
rm = TF_dll.TFormer_SetStartPosition(htform, 1, 0)
rm = TF_dll.TFormer_SetPrinter(htform, "", 0)
rm = TF_dll.TFormer_PrintForm(htform)
print 'finished'