GdPicture.NET Reference Guide
ADRSaveTemplateConfig Method (GdPictureImaging)

GdPicture14 Namespace > GdPictureImaging Class : ADRSaveTemplateConfig Method
The path of the template configuration file to create.
Saves the current Template Configuration within a file in order to load it later using the ADRLoadTemplateConfig() method.
Public Function ADRSaveTemplateConfig( _
   ByVal FileConfig As String _
) As Boolean
public bool ADRSaveTemplateConfig( 
   string FileConfig
public function ADRSaveTemplateConfig( 
    FileConfig: String
): Boolean; 
public function ADRSaveTemplateConfig( 
   FileConfig : String
) : boolean;
public: bool ADRSaveTemplateConfig( 
   string* FileConfig
bool ADRSaveTemplateConfig( 
   String^ FileConfig


The path of the template configuration file to create.

Return Value

True if success, else False (can't create the file or empty template configuration).
Creating ADR templates from file, and then saving the template configuration.
Dim TemplateID1 As Integer, TemplateID2 As Integer
'We create the first template from an image
TemplateID1 = oGdPictureImaging.ADRCreateTemplateFromFile("template1.tif")
If TemplateID1 = 0 Then"Can't create TemplateID1 " + "Error number: " + oGdPictureImaging.GetStat().ToString())
End If
If oGdPictureImaging.ADRSaveTemplateConfig(ADRconfig.dat) Then
   MessageBox.Show("Config saved!")
   MessageBox.Show("Error saving template config. Status: " + oGdPictureImaging.GetStat().ToString(), "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
See Also


GdPictureImaging Class
GdPictureImaging Members