Deleting ADR Template
Posted: Wed Aug 26, 2009 8:25 am
I have created a template config with 3 templates.
Once i have created this how is it possible to delete a template.
Please see below code.
"Still returns 1 and Template Count also is 1"
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.
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.