Leadtools.Barcode Namespace > BarcodeWriter Class > LoadOptions Method : LoadOptions(Stream) Method |
'Usage Dim instance As BarcodeWriter Dim stream As Stream instance.LoadOptions(stream)
ObjectiveC Syntax
function Leadtools.Barcode.BarcodeWriter.LoadOptions(Stream)( stream )
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 save the default options to an XML stream, use BarcodeWriter.SaveOptions(Stream stream).
To save and load data to an XML file, use BarcodeWriter.SaveOptions(string fileName) and BarcodeWriter.LoadOptions(string fileName).
For an example, refer to LoadOptions(string fileName)
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2