Limit number of pages in UBE

Mike Mackinnon

Mike Mackinnon

Well Known Member
Sorry just one more question...

Is there a way to limit the number of pages that are printed when generating a report? What I want to do is only print the first page of a report. Can I do this?


Mike MacKinnon
- One World B733, SP 11.3
- One World Xe B7333, SP 13 Windows NT
 
Hi Mike,
Try to use a Page Footer section and HIDE all section in one of the event of it (e.g. After Last Object Printed, End Section).
If you do not want to see this footer on the page then make it invisible (Section Properties) or HIDE it with system function call in ER of a previous event or do not put any object on it. In this case you can put your HIDE ER lines in any event of the footer section (e.g. Do Section).
If you want to control this behavior at run-time then you have to add a PO for it and put your HIDE calls into a condition (IF).
The only problem could be when somewhere in your UBE there is some SHOW section system function call or maybe when one of your section is larger then one page on the first page.
Do not forget, all your UBE logic will executed but you will get only one printed output page.

Please, let us know if could it work for you. Thanks.
Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Mike,

Just an idea:

You could count the number of record processed (warning, if you use the
"Suppress Section Write" function, the number of record processed may be
different from the number of record printed), and use the function "Stop
Batch Processing" when you reach, say 30 or whatever number fits on one
page.

That's just an idea.
As Zoltan would say "try it and let us know if it works"

Regards

Philippe

----- Original Message -----
From: "Mike Mackinnon" <[email protected]>
To: <[email protected]>
Sent: Monday, February 05, 2001 7:31 AM
Subject: Limit number of pages in UBE ~~0:5048


> Sorry just one more question...
>
> Is there a way to limit the number of pages that are printed when
generating a report? What I want to do is only print the first page of a
report. Can I do this?
>
>
> Mike MacKinnon
> - One World B733, SP 11.3
> - One World Xe B7333, SP 13 Windows NT
> --------------------------
> Visit the forum to view this thread at:
>
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=&Board=OWDEV&Numbe
r=5048
> *************************************************************
> This is the JDEList One World / XE Developers Mailing List.
> Archives and information on how to SUBSCRIBE, and
> UNSUBSCRIBE can be found at http://www.JDELIST.com
> *************************************************************



One World B733 Oracle 8.1 RS6000
 
I have added a page footer and put a system call to "Stop Batch Processing" in the "Last Record is Printed" event. The only problem is that I get a second blank page being printed. I'm not sure why this blank page is being printed. I'm kind of curious what you mean when you say HIDE all sections Zoltan. Could you please explain? Thanks.

Mike MacKinnon
- One World B733, SP 11.3
- One World Xe B7333, SP 13 Windows NT
 
Hi Mike,
HIDE all section means: issue a "Hide Section" System Function call in the Event Rule for all section of your UBE.
Good Luck,
Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Back
Top