Patrick,
I went through the same problem 6 months ago, and it was through the help of
people like Wayne where it was concluded that passing a variable causes the
record selection to occur on the PC. I guess for some reports the
difference isn't that great, but I found it unacceptable (ie slower than
Crystal). The suggestion of overwriting the filter solves the problem. The
code I use is something like :-
cFilter = "Project.Company = 'ContConv' and " +
"Project.ProjectID = '" + STRING(cProjectNumber:SCREEN-VALUE) + "'".
IF bPreview:SCREEN-VALUE = "Yes" THEN
cPrnDestination = "D".
ELSE
cPrnDestination = "".
lReturnValue = winRB:LOAD-MOUSE-POINTER("WAIT").
RUN t:\progress\gui\aderb\_printrb(
"t:\vantage\ud\An Example.prl", /* RB-REPORT-LIBRARY */
"Project Data Sheet", /* RB-REPORT-NAME */
"", /* RB-DB-CONNECTION */
"O", /* RB-INCLUDE-RECORDS */
cFilter, /* RB-FILTER */
"", /* RB-MEMO-FILE */
cPrnDestination, /* 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 */
cVars). /* RB-OTHER-PARAMETERS */
Michael
-----Original Message-----
From: Winter, Patrick [mailto:pjw@...]
Sent: Friday, 19 April 2002 10:26 PM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] RE: GETTING STARTED WITH 4GL
I was following an sample source code posted on the list. Can you explain
the difference between passing vs overwrite? I do not know the difference or
that their was another way.
Patrick
-----Original Message-----
From: Michael Miles [mailto:mmiles@...]
Sent: Thursday, April 18, 2002 4:15 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] RE: GETTING STARTED WITH 4GL
Instead of passing a parameter, overwrite the filter
I went through the same problem 6 months ago, and it was through the help of
people like Wayne where it was concluded that passing a variable causes the
record selection to occur on the PC. I guess for some reports the
difference isn't that great, but I found it unacceptable (ie slower than
Crystal). The suggestion of overwriting the filter solves the problem. The
code I use is something like :-
cFilter = "Project.Company = 'ContConv' and " +
"Project.ProjectID = '" + STRING(cProjectNumber:SCREEN-VALUE) + "'".
IF bPreview:SCREEN-VALUE = "Yes" THEN
cPrnDestination = "D".
ELSE
cPrnDestination = "".
lReturnValue = winRB:LOAD-MOUSE-POINTER("WAIT").
RUN t:\progress\gui\aderb\_printrb(
"t:\vantage\ud\An Example.prl", /* RB-REPORT-LIBRARY */
"Project Data Sheet", /* RB-REPORT-NAME */
"", /* RB-DB-CONNECTION */
"O", /* RB-INCLUDE-RECORDS */
cFilter, /* RB-FILTER */
"", /* RB-MEMO-FILE */
cPrnDestination, /* 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 */
cVars). /* RB-OTHER-PARAMETERS */
Michael
-----Original Message-----
From: Winter, Patrick [mailto:pjw@...]
Sent: Friday, 19 April 2002 10:26 PM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] RE: GETTING STARTED WITH 4GL
I was following an sample source code posted on the list. Can you explain
the difference between passing vs overwrite? I do not know the difference or
that their was another way.
Patrick
-----Original Message-----
From: Michael Miles [mailto:mmiles@...]
Sent: Thursday, April 18, 2002 4:15 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] RE: GETTING STARTED WITH 4GL
Instead of passing a parameter, overwrite the filter
----- Original Message -----
From: "Winter, Patrick" <pjw@...>
> The slowness seems to be from passing parameters.
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/