TX Text Control .NET for Windows Forms

Save Method

Method|Introduced in 33.0
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.WinForms.SDK as TXBarcode.dll from the private NuGet feed or Text Control Offline Packages

Description

Saves the barcode data.

Syntax

Save(string)

Saves the barcode data to the given file.

public void Save(string fileName);
ParameterDescription
fileName

Specifies a file the is saved to.

Save(Stream)

Saves the barcode data to the given object of type System.IO.Stream.

public void Save(Stream stream);
ParameterDescription
stream

Specifies an object of type System.IO.Stream the data is saved to.

Save(TextWriter)

Saves the barcode data to the given object of type System.IO.TextWriter.

public void Save(TextWriter textWriter);
ParameterDescription
textWriter

Specifies an object of type System.IO.TextWriter the data is saved to.

Save(XmlWriter)

Saves the barcode data to the given object of type System.IO.XmlWriter.

public void Save(XmlWriter xmlWriter);
ParameterDescription
xmlWriter

Specifies an object of type System.IO.XmlWriter the data is saved to.

Examples

The following example saves document content in a specified format. The created object is then available to the surrounding document workflow.

tXBarcodeCore.Save("document.docx");
Console.WriteLine("TXBarcode Core is ready for use.");