PEGetNTables

Use PEGetNTables to retrieve the number of tables in the open report. It counts both PC and SQL databases. This function is one of a series of functions that enable you to retrieve and update database information in an opened report so that the report can be printed using different server, database, user, and/or table location settings.

C Syntax
short CRPE_API PEGetNTables (
        short printJob );
Parameter

printJob

Specifies the print job from which you want to retrieve a table count.

Returns
Remarks
VB Syntax

VB Sample Code for modifying database table settings

Declare Function PEGetNTables Lib "crpe32.dll" ( ByVal printJob As 
Integer _
    ) As Integer
Delphi Syntax

Delphi code for getting/setting table location

function PEGetNTables (
    printJob: Word
    ): smallint stdcall;
dBASE for Windows Syntax

EXTERN CWORD PEGetNTables (CWORD) CRPE.DLL



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