[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] set-delay-print command and Page X of Y
Should set-delay-print command be only used in "after procedure" of the
on-break command?
I tried using it in the before procedure command and it says that the PRINT
DELAY statement did not have a SET-DELAY-PRINT command executed against it.
I am trying to print Page X of Y on the header. I need it to reset with the
change in the purchase requisition number.
For that I have
!*****************************************************************************
!main
!*****************************************************************************
begin-select
pr.prnum &prnum1 () on-break print=never
before=page_count
.
.
.
!*****************************************************************************
! procedure page_count
!*****************************************************************************
begin-procedure page_count
move #page-count to $last_page 8888
new-page
set-delay-print $last_page with $last_page
move 1 to #page-count
end-procedure
!*****************************************************************************
! print heading on each page.
!*****************************************************************************
begin-heading 4
.
.
.
print $last_page (,#Pagepos4,4) delay
.
.
end-heading
If I use "after" instead of "before", I get Page X of Y but in addition to that
it prints the Y part in the body of the report as well. And if i scan through
each and every page of the report, the Y part mysteriously disappears from the
body of the report. But I am sure the users wouldnt want to go through each and
everypage before printing the report.
Please help..
Thanks.
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users