GdPicture.NET Reference Guide
ADRSaveTemplateConfig Method (GdPictureImaging)
Example 





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.
Syntax
'Declaration
 
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
) 
public:
bool ADRSaveTemplateConfig( 
   String^ FileConfig
) 

Parameters

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).
Example
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
   MessageBox.show("Can't create TemplateID1 " + "Error number: " + oGdPictureImaging.GetStat().ToString())
End If
If oGdPictureImaging.ADRSaveTemplateConfig(ADRconfig.dat) Then
   MessageBox.Show("Config saved!")
Else
   MessageBox.Show("Error saving template config. Status: " + oGdPictureImaging.GetStat().ToString(), "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members