Create a programmable section with the same heigth as Body. Set control
number of programmable section "5", and lineleft "Yes".
Override the execute section of footer:
if(bodyTransCount<36)
{
While (bodyTransCount<=36)
{
Element.execute(5); // 5 is the control number of
programmable section
bodyTransCount ++;
}
}
super();
I hope this will help.
-----Original Message-----
From: fabien_m2002 [mailto:[EMAIL PROTECTED]
Sent: Monday, September 27, 2004 5:13 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: [report] How can i set a fixed height
of a body ?
Thanks Jason,
your solution doesn't work for a few count of items (less than 36).
If i have only 1 item, how can i reach the top of footer with a
drawing line ?
--- In [EMAIL PROTECTED], "jasonm" <[EMAIL PROTECTED]>
wrote:
> I had the same problem in statments, you have to count the number of
> items you print on a page then thorw a new page when you reach the
> count.
>
> In the fetch method, at the end of all other code, add this code
>
> bodyTransCount = bodyTransCount +1;
> if (bodyTransCount >=36) //SET TO 36
> LINES PER STATEMENT
> {
> this.newPage();
> bodyTransCount = 0; //reset count to 0
> }
>
>
>
> where following is variable decalration:
> Int bodyTransCount; //Store number of line being
printed
>
>
> Hope this helps.
>
> Regards,
>
> jason
Yahoo! Groups Links
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

