fpSetPartitionOn
This function tells KeyView when to begin a new partition. For more information, see Partitioning.
Syntax
KVErrorCode pascal fpSetPartitionOn( void* pContext, const KVPartitionSetOn* pSetPartitionOn);
Arguments
|
A pointer to a KeyView Export session that you initialized by calling fpInit(). |
pSetPartitionOn
|
A pointer to a KVPartitionSetOn structure that tells KeyView when to create a new partition. |
Returns
The return value is one of the error codes defined in KVErrorCode in kverrorcodes.h
.
Discussion
This function runs in-process or out-of-process. See Convert Files Out-of-Process.
When you convert out-of-process, you must call this function after the call to KVHTMLStartOOPSession() and before the call to KVHTMLEndOOPSession().
When you convert Word Processing documents with partitioning on hard breaks or page size changes:
- To create a table of contents by using the Export Tokens (see Export Tokens) in the KVHTMLTemplateEx structure, you must set the
pszChunkTemplate
member in KVHTMLTemplateEx. - When you turn off partitioning on headings, you must not create a table of contents by using the Export Tokens (see Export Tokens) in the KVHTMLTemplateEx structure. Instead, OpenText recommends that you create a table of contents by using the information from fpGetPartitionInfoList.