Hi Fabien;

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
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to