0 Replies Latest reply on Sep 22, 2009 7:42 AM by Jack Y

    Changing font in dynamic report

    Jack Y Newbie

      I want to change the font styles in dynamic report,.,I attached the code below,.,It takes the value but nothing happens,.,.




           this.setTitleName(reportmaster.getTitle());
           this.setTitleAlignmentName(reportmaster.getTitleAlignment());
           this.setTitleNameFont(reportmaster.getTitleFont());
           this.setTitleNameFontSize(reportmaster.getTitleFontSize());
           
           this.setSubTitleName(reportmaster.getSubTitle());
           this.setSubTitleAlignmentName(reportmaster.getSubTitleAlignment());
           this.setSubTitleNameFont(reportmaster.getSubTitleFont());
           this.setSubTitleNameFontSize(reportmaster.getSubTitleFontSize());
           
               System.out.println("Find Sort Order value :"+this.getInstance().getFindSortOrder());
               title=reportmaster.getTitle();
               subTitle=reportmaster.getSubTitle();
               
               byte[] Content=null;
               ByteArrayOutputStream outputStream_ = new ByteArrayOutputStream();
               Style titleStyle=new Style();
               Style subtitleStyle=new Style();
               Style headerStyle=new Style();
               Style detailStyle=new Style();
               Font font = new Font();
               font.setFontName(this.getTitleNameFont());
               font.setFontSize(this.getTitleNameFontSize());
               titleStyle.setBackgroundColor(Color.blue);
               titleStyle.setFont(font);
               Font subfont = new Font();
               subfont.setFontName(this.getSubTitleNameFont());
               subfont.setFontSize(this.getSubTitleNameFontSize());
               subtitleStyle.setFont(subfont);