Jump to content
We've recently updated our Privacy Statement, available here ×

sridhiraj

Members
  • Posts

    4
  • Joined

  • Last visited

sridhiraj's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Dear All, We are looking for the alternative of underlay in jasper. Here you can see in Current Problem Image height of first column text leaves blank row for subsequent columns. Current Problem Expected Result
  2. Hi All, I want exact output of pdf of my .jrxml as it comes from ireport. But my servlet is not showing border. Here is the code below. Can anyone tell me the code ireport uses to export pdf. private void generatePDFOutput(HttpServletResponse resp, HttpServletRequest req, JasperPrintAccessor jasperPrintAccessor, String pageIdx, String reportFileName) throws JRException,NamingException, SQLException, IOException {ServletOutputStream ouputStream = resp.getOutputStream();byte[] bytes = null; JasperPrint jasperPrint = jasperPrintAccessor.getJasperPrint();JRPdfExporter exporter = new JRPdfExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); if (OrientationEnum.LANDSCAPE.equals(jasperPrint.getOrientationValue())){jasperPrint.setOrientation(OrientationEnum.LANDSCAPE);req.setAttribute("orientation", "LANDSCAPE");}bytes = JasperExportManager.exportReportToPdf(jasperPrint); resp.setContentType("application/pdf");resp.setContentLength(bytes.length);String reportType = req.getParameter("reportType");if(reportType != null)resp.setHeader("Content-Disposition", "attachment; filename=""+reportFileName+".pdf"");elseresp.setHeader("Content-Disposition", "inline; filename=""+reportFileName+".pdf"");//resp.getWriter().write(bytes, 0, bytes.length);ouputStream.write(bytes, 0, bytes.length);ouputStream.flush();ouputStream.close(); }
  3. Hi, I'm displaying graphs from Ref Cursor. Stored Procedures are written in Oracke Packages. I've different graphs populated from various SP's. Now the problem is I'm not able to access the subdataset variables for calcuation. I've to create a variable of same name in main dataset. But again I'm not getting the required value in subdataset variable. Let me know possible solution for this. Thanks, Dhiraj
×
×
  • Create New...