Skip Headers
Oracle® Outside In Content Access Developer's Guide
Release 8.4.0

Part Number E12846-03
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

5 Text Access Functions

The Text Access module is required to use these functions.

This chapter includes the following sections:

5.1 TAOpenText

TAOpenText is used to initiate text access for a file that has been opened by DAOpenDocument.

Prototype

DAERR TAOpenText(
   VTHDOC     hDoc,
   VTLPHTEXT  phText )

phContent is not a file handle.

Parameters

Return Values

5.2 TACloseText

TACloseText is called to terminate text access for a file.

Prototype

DAERR TACloseText(
   VTHTEXT   hText )

Parameters

Return Values

5.3 TAReadFirst

This function is called to set the read pointer to the beginning of the document and to retrieve the first block of text.

Prototype

DAERR TAReadFirst(
   VTHTEXT    hText,
   VTLPBYTE   pTextBuf,
   VTDWORD    dwBufSize,
   VTLPDWORD  pBufCount )

Each piece of content has a type and a subtype. Based on the type and subtype, the content is described by using up to four VTDWORDs and a data buffer provided by the caller. The hText, pTextBuf, dwBufSize, and pBufCount elements of this structure should be filled by the caller before calling TAReadNext or TAReadFirst.

Parameters

Return Values

5.4 TAReadNext

TAReadNext is called to retrieve the next block of text from the file, beginning at the location where the last call to TAReadNext or TAReadFirst ended.

Prototype

DAERR TAReadNext(
   VTHTEXT    hText,
   VTLPBYTE   pTextBuf,
   VTDWORD    dwBufSize,
   VTLPDWORD  pBufCount )

Each piece of content has a type and a subtype. Based on the type and subtype, the content is described by using up to four VTDWORDs and a data buffer provided by the caller. The hText, pTextBuf, dwBufSize, and pBufCount elements of this structure should be filled by the caller before calling TAReadNext or TAReadFirst.

Parameters

Return Values

Special Text Character Substitutions