The Export to Excel option returns this error:"Export format is not supported or not recognized"
However, Microsoft Word and PDF work fine. Furthermore, I gathered the below source code from the
Business objects "Tutorials Section", and it doesn't work.
Also, when I click on the business objects export image, excel is missing.
I think.... perhaps a jar or dll is missing. I'm not sure.
Thanks
String reportName = (String)session.getAttribute("ReportName");
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null)
{
clientDoc = new ReportClientDocument();
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
session.setAttribute(reportName, clientDoc);
}
ReportExportControl exportControl = new ReportExportControl();
exportControl.setReportSource(session.getAttribute("reportSource"));
//Some formats allow you to set certain options.
ExportOptions exportOptions = new ExportOptions();
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
exportControl.setOwnForm(true);
exportControl.setOwnPage(true);
exportOptions.setExportFormatType(ReportExportFormat.MSExcel);
exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
exportControl.dispose();