I'm trying to save several prs file for different kind of reports, and I made this function in Python just to setup the properties and save them to file.
The only thing that doesn't work is the Page Format (A$/A5 etc) that is lost (not saved or nor re-loaded?) if I reload the prs previously saved.
All other parameters are correctly restored as expected.
Using Windows 7 Ultimate 32 bit, VPE 6.10 Professional Edition
This is the Function I used to test.
def VpeSetupPrinter(prs_file_name):
ret = False
doc = VPE.TVpeControl()
doc.OpenDoc()
doc.License(_KEY1, _KEY2)
# doc.SetupPrinter returns 0 if Ok, 1 if cancel
cancel = bool(doc.SetupPrinter(prs_file_name, VPE.PrintDialogControl.Always))
doc.CloseDoc()
doc = None
ret = not cancel
return ret