PESetNthTableSessionInfo

Use PESetNthTableSessionInfo to set the specified session information when opening a Microsoft Access table. Many Microsoft Access database tables require that a session be opened before the table can be used. Use PESetNthTableSessionInfo to open the session when required.

C Syntax
BOOL CRPE_API PESetNthTableSessionInfo (
        short printJob,
        short tableN,
        PESessionInfo FAR *sessionInfo,
        BOOL propagateAcrossTables );
Parameters

printJob

Specifies the print job for which you want to change the MS Access session information.

tableN

Specifies the 0-based number of the table for which you want to open the session. The first table is table 0. The last table is N-1.

sessionInfo

Specifies a pointer to PESessionInfo.

propagateAcrossTables

Boolean value indicating whether the session information should be used for opening all tables being used in the report.

Returns
Remarks

In Microsoft Access 95 and later, an Access database can have session security (also known as user-level security), database-level security, or both.

VB Syntax
Declare Function PESetNthTableSessionInfo Lib "crpe32.dll" ( _
    ByVal printJob As Integer, ByVal TableN As Integer, _
    SessionInfo As PESessionInfo, ByVal PropagateAcrossTables _
    As Integer ) As Integer
Delphi Syntax
function PESetNthTableSessionInfo (
    printJob: Word;
    tableN: smallint;
    var sessionInfo: PESessionInfo;
    propagateAcrossTables: Bool
    ): Bool stdcall;


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