export plugins

planarsoft
2005-12-09
2013-04-15
  • planarsoft

    planarsoft - 2005-12-09

    In locale properties bundle the following entry must be set else pdf creation fails:

    Vertical=Portrait

    Regarding non standard languages to export files pdf and excel. In order for languages like Greek to be displayed correctly i have made the following modifications to your version 0.8.1:

    excel:

    es\aeat\eett\rubik\export\hssf\StoreTableHssf.java
    and
    es\aeat\eett\rubik\export\hssf\StoreTableRubikHssf.java

    in all places that the method setCellValue is called before add an entry:

    cell.setEncoding(HSSFCell.ENCODING_UTF_16);

    pdf:

    1) i place in the directory that jrubik starts from (where the run.bat is located) an arial.ttf file for arial true type fonts
    2) in files

    es\aeat\eett\rubik\export\pdf\PDFTable.java
    and
    es\aeat\eett\rubik\export\pdf\PDFTableRubik.java

    replace declarations of
        private Font f_headerCol=...
        private Font f_headerRow=...
        private Font f_table=...
    with
                static {
                     try {
                        helveticagr = BaseFont.createFont("ARIAL.TTF",
                         BaseFont.IDENTITY_H , BaseFont.NOT_EMBEDDED);
                     }
                     catch (Exception e) {
                        e.printStackTrace();
                     }
                }
        private Font f_headerCol=new Font(helveticagr , 7, Font.NORMAL);
        private Font f_headerRow=new Font(helveticagr , 7, Font.NORMAL);
        private Font f_table=new Font(helveticagr , 8, Font.NORMAL);

    Best regards for this excellent product,
    Kleandros

     
    • Felix Saz

      Felix Saz - 2005-12-12

      Done.
      Download JRubik-0.8.2

      Thanks
      Felix

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks