r1 - 06 Jun 2007 - 07:28:14 - LeeYan?You are here: TWiki >  Main Web  >  ElixirReport > ElixirReportCookbook > MimeType

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 :

  1. Download 'RenderIf_based_on_MimeType..jar' from the above link
  2. Copy 'NoDataFound.jar' and place at $ELIXIR_REPORT_DESIGNER_HOME/ext
  3. Run Elixir Report Designer
  4. Click on 'Add FileSystem' and select 'Jar FileSystem'
  5. Enter 'KnowledgeBase' for Name and locate 'RenderIf_based_on_MimeType..jar'

-- Main.LeeYan - 06 Jun 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback