2013-08-23 88 views

回答

1

我們可以在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"; 
相關問題