RpReport:Connect2Source() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:Connect2Source() Method

Previous pageReturn to chapter overviewNext page

Purpose

This method instructs RpReport to connect to its data sources and validate all expressions.

Syntax

<oRpReport>:Connect2Source()  lSuccess

Description

ReportPro now waits until Print or PrintPreview is called before it connects to its data sources.  This allows more flexibility in setting options before the data sources are activated.

 

There are certain methods which will not work properly before RpReport connects to its data sources and compiles/validates its expressions:

 

GetVariableValue()

SetIndex()

 

This method returns true if RpReport is already connected or successful in connecting to its data sources.  This method is automatically invoked by a call to Print() or PrintPreview().

Example

// Connect to data sources and validate exps

oRpReport:Connect2Source()