Dear Folks,
I have a requirement that datagrid data should be exported as an excel sheet. I'm using documentum 6.7 and written a WDK component for datagrid results. I'm using apache poi jar to create excel sheet dynamically.
Some lines of my code will be like this:
HttpServletResponse response=(HttpServletResponse)PageContext().getResponse();// I'm getting request object in WDK like this
When I write below statement then I'm facing the error:
OutputStream out=response.getOutputStream();
java.lang.IllegalStateException at com.documentum.web.env.DmHttpActionResponse.getOutputStream(DmHttpActionResponse.java:398)
Ultimately, my requirement is when I click on "Export" button on my page, I want it to be exported to excel and should prompt to the user with "Open/Save" option.
Please do let me know if there is any alternate solutioin for this.
It would be really helpful if anybody can help in this regard.
Regards,
V S Anil B