0
下面是我想要做的事情:我必須根據通過URL發送的參數動態地更改母版頁的高度和寬度?如何更改BIRT中母版頁的高度和寬度?
下面是我想要做的事情:我必須根據通過URL發送的參數動態地更改母版頁的高度和寬度?如何更改BIRT中母版頁的高度和寬度?
我們可以在beforeFactory事件中做到這一點。首先,需要填寫主頁面的「名稱」屬性,如this topic中所述。
說,我們有一個整數 「myHeight」 報表參數:
var dynamicHeight=params["myHeight"].value+"in"; //don't forget the unit
reportContext.getDesignHandle().findMasterPage("myMasterPage").setProperty("height",
dynamicHeight);
reportContext.getDesignHandle().findMasterPage("myMasterPage").pageType="custom";