←Select platform

LoadOptions(Stream) Method

Summary

Loads the default write options used for BarcodeWriter from the specified XML stream.

Syntax

C#
VB
C++
public void LoadOptions( 
   Stream stream 
) 
Public Overloads Sub LoadOptions( _ 
   ByVal stream As Stream _ 
)  
public: 
void LoadOptions(  
   Stream^ stream 
)  

Parameters

stream
The XML stream containing the data.

Remarks

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).

Example

For an example, refer to LoadOptions(string fileName)

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly