Hi all,<br />
<br />
I m trying to use the API which, on click of a button on screen, would render the report in as a excel sheet. Something that would give the user the option of opening or saving the sheet. (see attachment).<br />
<br />
When I use the following code : <br />
<br />
<em class='bbc'>RenderOption renderOption = new RenderOption();<br />
renderOption.setOutputFileName("test.xls");<br />
renderOption.setOutputFormat("xls");<br />
renderOption.setOutputStream(response.getOutputStream());<br />
task.setRenderOption(renderOption);</em><br />
<br />
The file is generated on the server, but the user sees nothing on screen.<br />
<br />
When I changed the code as :<br />
<br />
<em class='bbc'>RenderOption renderOption = new RenderOption();<br />
renderOption.setOutputFormat("xls");<br />
renderOption.setOutputStream(response.getOutputStream());<br />
task.setRenderOption(renderOption);</em><br />
<br />
The entire XML output is shown in the browser but no xls.

<br />
<br />
I m sure its not a big issue, but somehow i m not able to get this.<br />
<br />
I m using Eclipse 3.4 BIRT 2.3.<br />
<br />
Please help with the code.<br />
<br />
Thanks<br />
Nikhil