FileRequestDocumentText Property |
Namespace: Aceoffix
Get the text-only content and save it to database. So we can have the full-text search function in Word documents.
![]() |
---|
This property only applies to Word currently. |
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(); }