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

yatasoft

Members
  • Posts

    26
  • Joined

  • Last visited

yatasoft's Achievements

Contributor

Contributor (5/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. and table http://www.opensourcejavaphp.net/java/ireport/com/jaspersoft/ireport/components/table/CreateTableAction.java.html
  2. ok I find it http://www.opensourcejavaphp.net/java/ireport/com/jaspersoft/ireport/components/list/CreateListAction.java.html
  3. Hello, everyone: I known how to create JapsperDesign object with noxml. /--------------------------------------------------------------------------------- band = new JRDesignBand(); JRDesignTextField textField = new JRDesignTextField(); band.addElement(textField ); /--------------------------------------------------------------------------------- but How to Creat "JasperReports List Component" with NoXml there no JRDesignList class I found JRDesignComponentElement ,but how to create list object with JRDesignComponentElement thanks
  4. hi: I only found the free third edition https://www.jaspersoft.com/store/jasperreports-ultimate-guide-documentation How to buy the latest version for jaseprreprots-4.1.2? thanks
  5. Another thing:I'm developing a report designer,designer template excel file format,use jasperReports reporting engine rendering reports. I have sent a message to your mailbox tdanciu@jaspersoft.com Look forward to your reply
  6. Hi teodor: I have a algorithm formula ,it can be used to accurately convert xls to the pixel width. Hope useful to youï¼ According to the code ,you can infer that how to Convert Pixel to xls width.Code://xls column width to pixel.int colWidth = sheet.getColumnWidth(new Integer(cellColNum));widthPixel = TemplateAnalysisUtil.convertPoiColumnWidth2Pixel(colWidth);//converter xls row height to pixelint heightPixel = TemplateAnalysisUtil.convertPoiRowHeight2Pixel(row.getHeightInPoints());TemplateAnalysisUtil.java /** xls column width to pixel * @param colWidthpoi * @return */ public static int convertPoiColumnWidth2Pixel(int colWidthpoi) { int widthPixel; if (colWidthpoi >= 416) {// big than a character width widthPixel = (int) (((colWidthpoi - 416.0) / 256.0) * 8.0 + 13.0 + 0.5); } else { widthPixel = (int) (colWidthpoi / 416.0 * 13.0 + 0.5); } return widthPixel; } /** * converter xls row height to pixel * @param rowHeight * @return */ public static int convertPoiRowHeight2Pixel(float rowHeight) { int heightPixel; heightPixel = (int) ( rowHeight/ 0.75 + 0.5); return heightPixel; }
  7. How to create Tracker?/tools/fckeditor/editor/images/smiley/msn/sad_smile.gif
  8. template Unit pixel 10 20 30 40 50 60 70 80 90 100 120 160 200 300 600 1000 Export XLS unit pixels 12 24 35 47 59 71 82 94 106 118 141 188 235 353 705 1176 My solution is ByteArrayOutputStream byteOutstream = new ByteArrayOutputStream(); JRXlsExporter exporter = new JRXlsExporter(); exporter.setParameter(JExcelApiExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE); exporter.setParameter(JExcelApiExporterParameter.FORMAT_PATTERNS_MAP, xlsFormats ); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, byteOutstream ); exporter.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE); exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE); exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE); exporter.exportReport(); byte retArr[]=byteOutstream .toByteArray(); byteOutstream .close(); ByteArrayInputStream inStream=new ByteArrayInputStream(retArr); HSSFWorkbook book = new HSSFWorkbook(inStream); HSSFSheet sheet=book.getSheetAt(0); for(int i=0;i<=TemplateAnalysisUtil.getSheetEndColumnIndex(sheet);i++){ int old=sheet.getColumnWidth(i); int real=(int)(old/1.175); sheet.setColumnWidth(i, real); } Code:public class TemplateAnalysisUtil { /** * get EndColumnIndexofSheet */ public static int getSheetEndColumnIndex(HSSFSheet sheet) { int index = 0; for (int i = sheet.getFirstRowNum(); i <= sheet.getLastRowNum(); i++) { HSSFRow row = sheet.getRow(i); if (row != null) { if (row.getLastCellNum() - 1 > index) index = row.getLastCellNum() - 1; } } return index; }} Post Edited by yatasoft at 08/29/2011 11:27
  9. Hi html smaller than pdf files Use the same jrxml Print pdf and html Compare size, not the same thanks Post Edited by yatasoft at 08/20/2011 19:10
  10. HI: In the same report ,Use more than 4 fonts embedded pdf,JVM Memory overflow。 Is not adding too many fonts lead to memory overflow? thanks : )
  11. i konwn this . I am a member of jasper technology group. some time ,someone ask me this .I also said the use of "isPrintRepeatedValues" but isPrintRepeatedValues Unable set “Aâ€and "B" Vertical center and isPrintRepeatedValues =true ,No border i just want Group as the crossTabs'RowGroup thanks
  12. is The United States now at noon it? My country is now At nightï¼ hehe. Very, very grateful to shortageï¼
×
×
  • Create New...