WordDocumentOpenDataRegion Method |
Opens the specified DataRegion and returns the DataRegion object.
Namespace: Aceoffix.WordReaderAssembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntaxpublic DataRegion OpenDataRegion(
string DataRegionName
)
Public Function OpenDataRegion (
DataRegionName As String
) As DataRegion
Parameters
- DataRegionName
- Type: SystemString
The name of DataRegion.
Return Value
Type:
DataRegionReturns a DataRegion object.
RemarksIf the specified DataRegion exists, this method will return the
DataRegion object.
Examples
The following code example shows how to call the OpenDataRegion method topic to get the value of the specified DataRegion.
Aceoffix.WordReader.WordDocument wd = new Aceoffix.WordReader.WordDocument();
string strCompanyName = wd.OpenDataRegion("CompanyName").Value;
string strProductName = wd.OpenDataRegion("ProductName").Value;
wd.Close();
See Also