FieldDatabase

Overview

FieldDatabase is a class in Aspose.Words FOSS for .NET. Inherits from: Field, IFieldCodeTokenInfoProvider.

Implements the DATABASE field.

This class provides 4 methods for working with FieldDatabase objects in .NET programs. Available methods include: GetFieldCode, Remove, Unlink, Update. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Connection, DisplayResult, End, FileName, FirstRecord, Format, and 13 more.

Properties

NameTypeAccessDescription
FormatAttributesstringRead/WriteGets or sets which attributes of the format are to be applied to the table.
ConnectionstringRead/WriteGets or sets a connection to the data.
FileNamestringRead/WriteGets or sets the complete path and file name of the database
FirstRecordstringRead/WriteGets or sets the integral record number of the first data record to insert.
InsertHeadingsboolRead/WriteGets or sets whether to insert the field names from the database as column headings in the resulting table.
TableFormatstringRead/WriteGets or sets the format that is to be applied to the result of the database query.
InsertOnceOnMailMergeboolRead/WriteGets or sets whether to insert data at the beginning of a merge.
QuerystringRead/WriteGets or sets a set of SQL instructions that query the database.
LastRecordstringRead/WriteGets or sets the integral record number of the last data record to insert.
StartFieldStartReadGets the node that represents the start of the field.
SeparatorFieldSeparatorReadGets the node that represents the field separator.
EndFieldEndReadGets the node that represents the field end.
TypeFieldTypeReadGets the Microsoft Word field type.
ResultstringRead/WriteGets or sets text that is between the field separator and field end.
DisplayResultstringReadGets the text that represents the displayed field result.
IsLockedboolRead/WriteGets or sets whether the field is locked (should not recalculate its result).
IsDirtyboolRead/WriteGets or sets whether the current result of the field is no longer correct (stale) due to other modifications made to the document.
FormatFieldFormatReadGets a FieldFormat object that provides typed access to field’s formatting.
LocaleIdintRead/WriteGets or sets the LCID of the field.

Methods

SignatureDescription
GetFieldCode()Returns text between field start and field separator (or field end if there is no separator).
Remove()Removes the field from the document.
Update()Performs the field update.
Unlink()Performs the field unlink.

See Also