PESetSectionFormat

Use PESetSectionFormat to set the section format settings for selected sections in the specified report to the values in PESectionOptions. This function can be used to provide specialized formatting for printing invoices, form letters, printing to pre-printed forms, etc. It allows you to hide a section, insert a page break either before or after a section begins, reset the page number to 1 after a group value prints, prevent page breaks from spreading data from a single record over two pages, and to print group values only at the bottom of a page.

C Syntax
BOOL CRPE_API PESetSectionFormat (
        short printJob,
        short sectionCode,
        PESectionOptions FAR *options );
Parameters

printJob

Specifies the print job for which you want to set section formatting options.

sectionCode

Specifies the Section Codes for the report section(s) for which you want to set formatting options. See Working with section codes.

options

Specifies a pointer to PESectionOptions. Use this structure to set your section options.

Returns
Remarks
VB Syntax

VB Sample Code for modifying sections and lines

Declare Function PESetSectionFormat Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal sectionCode As Integer,
    Options As PESectionOptions ) As Integer
Delphi Syntax

Delphi code for getting/setting section format

function PESetSectionFormat (
    printJob: Word;
    sectionCode: smallint;
    var options: PESectionOptions
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com