Can anyone tell me why i am getting a distorted page while exporting jasper report to html. The code that i have used for exporting the report is as follows:
JRHtmlExporter exporterHtml = new JRHtmlExporter();
exporterHtml.setParameter(JRHtmlExporterParameter.JASPER_PRINT,print);
exporterHtml.setParameter(JRHtmlExporterParameter.OUTPUT_STREAM,outStream);
exporterHtml.setParameter(JRHtmlExporterParameter.CHARACTER_ENCODING, "UTF-8");
//exporterHtml.setParameter(JRHtmlExporterParameter.,Boolean.TRUE);
Map<String,Object> imagesMap = new HashMap<String,Object>();
exporterHtml.setParameter(JRHtmlExporterParameter.IMAGES_MAP, imagesMap);
exporterHtml.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,Boolean.FALSE);
exporterHtml.setParameter(JRHtmlExporterParameter.IMAGES_URI,"image?image=");
exporterHtml.exportReport();
While exporting report, i am getting the first page in correct format,however the second page is coming with a big left margin gap... Can anyone help to overcome this problem?