KeyView 24.1

# 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

`pContext` | 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.

Copyright 1997-2023 Open Text
Version 24.1 | Last updated December 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.1

Topic Title: fpSetPartitionOn