Click or drag to resize
FileRequestDocumentText Property
Gets the plain text of the document without any format.

Namespace: Aceoffix
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public string DocumentText { get; }

Property Value

Type: String
A string that contains the text content of the document.
Remarks

Get the text-only content and save it to database. So we can have the full-text search function in Word documents.

Note Note
This property only applies to Word currently.
Examples

The following code example shows how to use the DocumentText property to get the plain text of the document.

protected void Page_Load(object sender, EventArgs e)
{
    Aceoffix.FileRequest freq = new Aceoffix.FileRequest();
    string strDocumentText = freq.DocumentText; 
    // After you get the text content, you can save it to the database.

    freq.SaveToFile(Server.MapPath("doc/") + freq.FileName);
    freq.Close();
}
See Also