Configuring default export formats
The iServer platform provides output format emitters as plug-ins. These emitters can be configured so that content exported by the BIRT Viewer has specific settings. To configure emitter default options, add a RenderDefaults.cfg file to the emitter configuration JAR file for the emitter with specific options set with text. For example, to configure the Microsoft Excel (.xls) file emitter, add RenderDefaults.cfg to the following JAR file:
<iServer root>\Jar\BIRT\platform\plugins\com.actuate.birt.report.engine.emitter.config.xls_11.0.4.<date_stamp>.jar
RenderDefaults.cfg contains one parameter and value pair on each line to configure each default setting. For example, to configure the XLS emitter to disable pivot tables and to not hide grid lines by default, the RenderDefaults.cfg file contains the following entries:
excelRenderOption.EnablePivotTable=false
excelRenderOption.hideGridlines=false
After adding the configuration file to the emitter configuration JAR file, re-archive and save the JAR file to the plugins folder. Then, restart the iServer Service. After these steps, the viewer displays the configured default options when exporting a report to the XLS output format, as shown in Figure 13-1.
Figure 13-1  
Table 13-3 lists the default settings parameters for the different file formats the emitters produce.
pdfRenderOption
.bidiProcessing
pdfRenderOption
.embeddedFonts
pdfRenderOption
.fontSubstitution
pdfRenderOption
.hyphenation
pdfRenderOption
.pageOverflow
Controls rendering content when the content exceeds the page size. Integer values indicate the following options:
pdfRenderOption
.textWrapping
PPT/PostScript
Enables bidirectional text support. For example, BIDIProcessing=false.
Sets font substitution for unknown fonts. For example, FontSubstitution=false.
excelRenderOption
.AutoFitPivotTable
Enables BIRT Viewer to automatically adjust content for display in pivot tables.
excelRenderOption
.EnableLiveFormula
excelRenderOption
.EnablePivotTable
excelRenderOption
.ExportChartsAsImages
excelRenderOption
.hideGridlines
excelRenderOption
.multipleSheet
excelRenderOption
.wrappingText
 

Additional Links:

Copyright Actuate Corporation 2012