GdPicture.NET Reference Guide
ADRStartNewTemplateConfig Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : ADRStartNewTemplateConfig Method
Resets the current Template Configuration, if existing (deletes all template identifiers), and start a new one.
Syntax
'Declaration
 
Public Sub ADRStartNewTemplateConfig() 
public void ADRStartNewTemplateConfig()
public procedure ADRStartNewTemplateConfig(); 
public function ADRStartNewTemplateConfig();
public: void ADRStartNewTemplateConfig(); 
public:
void ADRStartNewTemplateConfig(); 
Example
Loading a template configuration file, and showing each template's name, ID, and number of images it is based on in a MessageBox.
Dim oGdPictureImaging As New GdPictureImaging
oGdPictureImaging.ADRStartNewTemplateConfig()
If oGdPictureImaging.ADRLoadTemplateConfig(ADRconfig.dat) Then
   Dim templateCount As Integer = oGdPictureImaging.ADRGetTemplateCount()
   If templateCount > 0 Then
      For i As Integer = 1 To templateCount
         Dim templateID As Integer = oGdPictureImaging.ADRGetTemplateID(i)
         Dim templateName As String = oGdPictureImaging.ADRGetTemplateTag(templateID)
         Dim imageCount As Integer = oGdPictureImaging.ADRGetTemplateImageCount(templateID)
         MessageBox.Show("Template Name: " + templateName + " TemplateID: " + templateID.ToString() +
         " Template Image Count: " + imageCount.ToString())
      Next
   Else
      MessageBox.Show("No template available!", "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
   End If
Else
   MessageBox.Show("Error loading template config. Status: " + oGdPictureImaging.GetStat().ToString(), "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members