Once i have created this how is it possible to delete a template.
Please see below code.
Code: Select all
Imaging1.ADRLoadTemplateConfig(_strTemplatesFolder + "\\templateconfig.t");
Imaging1.ADRGetTemplateImageCount(template);
"Returns 1. Template Count is also 1"
Imaging1.ADRDeleteTemplate(template);
Imaging1.ADRGetTemplateImageCount(template);
"Returns 0"
gdStatus = Imaging1.ADRSaveTemplateConfig(_strTemplatesFolder + "\\templateconfig.t"); "Saving changes"
Imaging1.ADRLoadTemplateConfig(_strTemplatesFolder + "\\templateconfig.t");
Imaging1.ADRGetTemplateImageCount(template);
The delete only seems to remove it from memory the changes are not persisted to the config.
Can you let me know how i can remove a template from the config file.