Skip to Content
0
Former Member
May 20, 2009 at 05:43 AM

exporting the crystal report with java application

503 Views

Hi,

I running the crystal report template in java application. While running template I am trying to export that report to perticular location .

But I am getting one unknow formate on browser, also not showing any exception

Here I am pasting my code , Please help me to resolve this problem.

exportControl = new ReportExportControl();

exportControl.refresh();

exportControl.setReuseParameterValuesOnRefresh(true);

ConnectionInfos connectionInfos =new ConnectionInfos();

connectionInfos.add(connectionInfo);

exportControl.setDatabaseLogonInfos(connectionInfos);

exportControl.setName("malli");

exportControl.setOwnPage(false);

try {

ExportOptions options = new ExportOptions();

exportControl.setExportOptions(options);

exportControl.setReportSource(reportSource);

options.setExportFormatType(ReportExportFormat.PDF);

exportControl.setParameterFields(oFields);

exportControl.processHttpRequest(request, response, getServletContext(), null);

exportControl.dispose();

}

catch (ReportSDKExceptionBase e) {

e.printStackTrace();

}

regards,

Mallikarjuna