Carol in the execute section method you can use this.Height(0, Units::mm) to set the height to 0.

-----Original Message-----
From: carolkilduff [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 8:05 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: How to move up section on SalesInvoice


Thanks for your advice Preston,

Do you mean set the section height in the executesection method? How do I do this through code?

Regards,
Carol.

--- In [EMAIL PROTECTED], "Preston A. Larimer" <[EMAIL PROTECTED]> wrote:
Carol, set the section height to be zero when you don't want it
displayed, or if there are still a few elements you are displaying
it,
just shorten the section height.
-Preston
-----Original Message-----
From: carolkilduff [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] How to move up section on SalesInvoice
Hi


I'm customising the SalesInvoice report. I only need to display
the
name and address details on the first page and not on subsequent pages. I have done this by hding the fields in the executesection method of the PageHeader: Invoice.

public void executeSection()
{ if (element.page() != 1)
{
//labels
InvoiceTo.hide();
Branch.hide();
DeliveredTo.hide();


        //fields
        CustInvoiceJour_InvoicingName.hide();
        CustInvoiceJour_InvoicingAddress.hide();
        BranchName.hide();
        BranchAddress.hide();
        CustInvoiceJour_DeliveryName.hide();
        CustInvoiceJour_DeliveryAddress.hide();

}

    super();
}

My problem is that when these fields don't print after the first page, the lines section (SectionGroup: CustInvoiceJour) still
appears
in the same place rather than moving up the page to fill the space where the name and address details have been hidden. Is there
anyway
I can position this section group differently on pages after the first page?

Thanks for any advice.
Carol. .


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Yahoo! Groups Sponsor ADVERTISEMENT
click here


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to