RenderIf based on MimeType
This is sample which shows a different label when you choose to render in Excel output or PDF output.
The following script is added in at
RenderIf of the Label.
Renderer.getMimeType()=="application/vnd.ms-excel"
Similarly, this script can be used at
RenderIf of a section , band or component.
Sample
To use the sample :
- Download 'RenderIf_based_on_MimeType..jar' from the above link
- Copy 'NoDataFound.jar' and place at $ELIXIR_REPORT_DESIGNER_HOME/ext
- Run Elixir Report Designer
- Click on 'Add FileSystem' and select 'Jar FileSystem'
- Enter 'KnowledgeBase' for Name and locate 'RenderIf_based_on_MimeType..jar'
-- Main.LeeYan - 06 Jun 2007