Leadtools.Barcode Namespace > BarcodeWriter Class > SaveOptions Method : SaveOptions(String) Method |
'Usage Dim instance As BarcodeWriter Dim fileName As String instance.SaveOptions(fileName)
function Leadtools.Barcode.BarcodeWriter.SaveOptions(String)( fileName )
The load/save methods are provided as helper methods for the user. The BarcodeEngine, BarcodeWriter and BarcodeWriter do not use these methods internally.
The default write options can be retrieved using the GetDefaultOptions or GetAllDefaultOptions methods. You can then change the values of the BarcodeWriteOptions object returned (or cast it back to the appropriate derived class). These options are used by the WriteBarcode method when no explicit options are passed by the user.
To load the default options from an XML file, use BarcodeWriter.LoadOptions(string fileName).
To save and load data to an XML stream, use BarcodeWriter.SaveOptions(Stream stream) and BarcodeWriter.LoadOptions(Stream stream).
For an example, refer to LoadOptions(string fileName)