Hi Martins,

You can use

element.design(designName);

method. Help description is below :

ReportRun.design
Run on: Called

Description
Get name of actual design or set actual design

Syntax
public final ReportDesign design( [anytype _nameOrReportDesign] )
Arguments
Returns : the actual design

name : let the design having this name be the actual design
Remarks
This method can be used to change from one design to another during
execution of a report.

Example
// A report could be created with two designs,
// designPortrait (with few controls) and designLandscape (with many
controls).
// If the prompt method is overloaded with the following code
// the design corresponding the orientation selected via the sysPrintForm
// will be selected

public Boolean Prompt(Boolean showCopy=TRUE, Boolean showPages=TRUE,
Boolean showDevice=TRUE, Boolean
showProperties=TRUE, Boolean showPrintTo=TRUE)
{
    Boolean ret;
    printJobSettings pjs;

    ret = super(showCopy, showPages, showDevice, showProperties,
showPrintTo);

    pjs = element.PrintJobSettings();

    if (pjs.Orientation() == printerOrientation::portrait)
        element.design("designPortrait");
    else
        element.design("designLandscape");

    Return ret;
}


Regards,

Anil Ozay
Software Engineer, Axapta Specialist
MBSCP, MCP

Anadolu Group, ABH Inc.




-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin Sujkowski
Sent: Tuesday, November 29, 2005 4:05 PM
To: [email protected]
Subject: [development-axapta] Switching Report Designs

I need to heavily modify the PurchPurchaseOrder report. It is supposed
to appear almost completely different for each Purchase Type. I still
want to use only one physical report object but have multiple designs
inside of it (multiple elements under designs node).So say i have 3
designs names Design1, Design2,design3. How can i programatically (at
runtime) select a design i want to display? I know you can hide
individual sections inside a design but can you hide an entire design?
Thanks for any light you can shed on this.









Yahoo! Groups Links









Bu e-posta ve muhtemel eklerinde verilen bilgiler kisiye ozel ve gizlidir. Anadolu Bilisim Hizmetleri A.S. bu mesajin icerigi ve ekleri ile ilgili hicbir hukuki sorumluluk kabul etmez. Yetkili alicilardan degilseniz, bu mesajin herhangi bir sekilde ifsa edilmesi, kullanilmasi, kopyalanmasi, yayilmasi veya mesajda yer alan hususlarla ilgili olarak herhangi bir islem yapilmasi kesinlikle yasaktir. Bu durumda hemen mesajin gondericisini bilgilendiriniz ve mesaji sisteminizden siliniz. Elektronik mesajlar uzerinde yapilmis herhangi bir degisiklik veya sonuclari uzerinde Anadolu Bilisim Hizmetleri A.S.'nin sorumlulugu yoktur. Ayrica, e-posta mesajlarindaki hata ve/veya eksiklikten, virus icermesinden ve bilgisayar sisteminize verebilecegi herhangi bir zarardan Sirket olarak sorumluluk kabul etmeyecegimizi de bildiririz.

This e-mail and any information included within any attached document are private and confidential and intended solely for the addressee. Anadolu Bilisim Hizmetleri A.S. does not accept any legal responsibility for the contents of this message and any attached documents. If you are not the intended addressee, it is forbidden to disclose, use, copy, or forward any information within the message or engage in any activity regarding the contents of this message. In such case please notify the sender and delete the message from your system immediately. Anadolu Bilisim Hizmetleri A.S. also denounces any legal responsibility for any amendments made on the electronic message and the outcome of these amendments, as well as any error and/or defect, virus content and any damage that may be given to your system.





SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to