Home
Analytics
disable some of the export options from BIRT viwer (xhtml,ppt, doc)
suresh@anumolu
<p>Hi,</p>
<p> </p>
<p>Can someone please help me on how to disable the export options from BIRT viewer export content option( like xhtml, doc, ppt etc). Right now when i export to xhtml fromat the BIRT viwer lost its state and entire report is getting displayed in xhtml format. I would like to disable some of these export formats.</p>
<p> </p>
<p>thanks for your help in advance.</p>
<p> </p>
<p>Thanks</p>
<p>Suresh</p>
Find more posts tagged with
Comments
Clement Wong
<p>Commercial BIRT, or Open Source BIRT? What version of BIRT?</p>
suresh@anumolu
<p>Clement,</p>
<p> </p>
<p>Thanks for looking into this. We are using the commercial version of BIRT. However i would like to check on open source as well.</p>
<p> </p>
<p>Commercial version of Ihub is -</p>
<p>The iHub version we are using is – iHub: 23 Augusta R1 Development (Build 230A131216)</p>
Clement Wong
<p>For iHub:</p>
<p>1. Navigate to the following location <iHub home directory>\Jar\BIRT\platform\plugins<br>
2. Open the folder <strong>com.actuate.birt.report.engine.emitter.config_23.0.0.v20131216</strong></p>
<p> </p>
<p>There will be .xml files corresponding to each download format.</p>
<p> </p>
<p>3. Back up and then open any one the XML files that you do not want to appear in list.<br>
4. Change emitter enabled value to false. By default it is commented so you'll need to un-comment it first.<br>
<br>
Before</p>
<pre class="_prettyXprint">
<!--
<emitter enabled="true" />
--></pre>
<p><span style="font-family:'courier new', courier, monospace;"> </span><br>
After</p>
<pre class="_prettyXprint">
<emitter enabled="false" /></pre>
<p>5. Restart iHub</p>
<p> </p>
<p> </p>
<p> </p>
<p>For OS BIRT, you'll have to be specific to which version you're targeting.</p>
suresh@anumolu
<p>clement,</p>
<p> </p>
<p>Thanks for the details. However i could not find couple of formats html and xhtml in it. But i do see these formats on BIRT viewer. Do i need to look at any other folders for those formats?</p>
<p>These are the formats i could find in that config folder.</p>
<p> </p>
<p>com.actuate.birt.report.engine.emitter.config_23.0.0.v20131216]$</p>
<p>about.html</p>
<p>com.actuate.birt.report.engine.emitter.xls.xml</p>
<p>com.actuate.birt.report.engine.emitter.xlsx.xml</p>
<p>fragment.xml library.jar</p>
<p>META-INF</p>
<p>org.eclipse.birt.report.engine.emitter.doc.xml</p>
<p>org.eclipse.birt.report.engine.emitter.docx.xml</p>
<p>org.eclipse.birt.report.engine.emitter.pdf.xml</p>
<p>org.eclipse.birt.report.engine.emitter.postscript.xml</p>
<p>org.eclipse.birt.report.engine.emitter.ppt.xml</p>
<p>org.eclipse.birt.report.engine.emitter.pptx.xml</p>
<p>Thanks</p>
<p>Suresh</p>
Clement Wong
<p>Looks like in iHub3 (Final) the version you have doesn't have this XML setting available.</p>
<p> </p>
<p>It is possible to do this from the UI Information Console side.</p>
<p> </p>
<p>1. Under<strong> ...\iportal\iv\viewer</strong>, backup the file <strong>feature39218.js</strong></p>
<p> </p>
<p>2. (White spaces are removed so you'll need to do a search, or you use a tool like Notepad's JSTool to beautify the JavaScript.</p>
<p> </p>
<p>Find:</p>
<pre class="_prettyXprint">
var I = F.exportReportOptions;
var A = new Array();</pre>
<p>Insert:</p>
<pre class="_prettyXprint">
var I = F.exportReportOptions;
for (var ix = 0; ix < I.length; ix++) {
if (I[ix].outputFormat == 'xhtml') {
I.splice(ix,1);
break;
}
}
var A = new Array();</pre>
<p>3. Save</p>
<p> </p>
<p>4. Flush your browser's cache, or launch an incognito/private browser to test.</p>
suresh@anumolu
<p>Thanks Clement. That worked.</p>