Progress
Report Builder
Deployment Guide


Overriding Database Connection Information

The following example, rbdbconn.p, illustrates how to override the database connection for a report. If the report was saved with a local database in single-user mode and you want to override it with a remote database in multi-user mode, run the rbdbconn.p procedure.

Here is the rbdbconn.p procedure:

rbdbconn.p
RUN aderb\_printrb(
  "c:\dlc\src\aderb\rbsample.prl", /* RB-REPORT-LIBRARY */
  "Accts Receivable",              /* RB-REPORT-NAME */
  "sports = -db sports -H newhost 
  -S newserver -N TCP",         /* RB-DB-CONNECTION */
  "",                              /* RB-INCLUDE-RECORDS */
  "",                              /* RB-FILTER */
  "",                              /* RB-MEMO-FILE */
  "",                              /* RB-PRINT-DESTINATION */
  "",                              /* RB-PRINTER-NAME */
  "",                              /* RB-PRINTER-PORT */
  "",                              /* RB-OUTPUT-FILE */
  0,                               /* RB-NUMBER-COPIES - zero */
  0,                               /* RB-BEGIN-PAGE - zero */
  0,                               /* RB-END-PAGE - zero */
  no,                              /* RB-TEST-PATTERN */
  "",                              /* RB-WINDOW-TITLE */
  yes,                             /* RB-DISPLAY-ERRORS */
  yes,                             /* RB-DISPLAY-STATUS */
  no,                              /* RB-NO-WAIT */
  "").                             /* RB-OTHER-PARAMETERS */ 

NOTE: If you are using the PRNTRB2 interface you must modify the procedure to run aderb\_prntrb2 and include the RB-STATUS-FILE parameter.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095