HI Team,
I have a problem with report viewer while viewing the report in Browser. Regular reports are working fine. but when the report contain "Format with multiple columns" enabled the data is not aligned as expected, it is getting overwritten. We developed reports in the Crystal Reports 2008 and the report is working perfect in designer. Please help me in resolving the issue.
Below is the code i am using to view the reports in pdf:
byteArrayInputStream = (ByteArrayInputStream) reportClientDocument.getPrintOutputController().export(ReportExportFormat.PDF);
System.out.println("-------------------------12");
response.reset();
response.setHeader("Content-disposition", "inline;filename=crreport.pdf");
response.setContentType("application/pdf");
byteArray = new byte[1024];
while((bytesRead = byteArrayInputStream.read(byteArray)) != -1) {
System.out.println("----------------");
response.getOutputStream().write(byteArray, 0, bytesRead);
}
response.getOutputStream().flush();
response.getOutputStream().close();
Attached designed view and browser view images