FormDataConverterConvertToStreams Method
Convert data in table into streams.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public void ConvertToStreams(
	Stream[] destStream,
	DataType destType
)

Parameters

destStream
Type: System.IOStream
Streams where data will be stored.
destType
Type: Aspose.Pdf.FacadesDataType
Type of stored data. Valid values are: XML, FDF, XFDF.
Examples
C#
DataTable table = new DataTable();
table.Columns.Add("radiobuttonField");
table.Columns.Add("textField");
table.Columns.Add("checkboxField");
table.Columns.Add("listboxField");
table.Columns.Add("comboboxField");
DataRow newrow = table.NewRow();
newrow["textField"] = "NEW DATA";
newrow["listboxField"] = "Item1";
newrow["comboboxField"] = "Item1";
newrow["checkboxField"] = "true";
newrow["radiobuttonField"] = "true";
table.Rows.Add(newrow);
fc.Table = table;
fc.ConvertToStreams(new Stream[] { stream }, DataType.XML);
See Also