问题  fastreport中列宽固定,根据字段内容多少自动调整行高?要求达到如下效果:
检验项目      标准要求                   检测结果
-------------------------------------------------------
苯甲酸        ≤1.0                        1.0 
--------------------------------------------------------
铅(以Pb计)    ≤0.05                       <0.05
--------------------------------------------------------
           具有所含原料水果、蔬菜
           应具有的色泽,香气和滋         合格
 感官指标  味,无异味,无肉眼可见
           的外来杂质
-------------------------------------------------------
糖精钠      ≤0.15                         0.094
--------------------------------------------------------

解决方案 »

  1.   

    补充:band 的stretch设为true和meno 的stretchmode设为smMaxHeight均为达到要求,请各位大虾赐教,问题一经解决马上结贴
      

  2.   

    在band选项Allowslip选true。
    stretched项选择true。
    memo项stretch选择打勾;
    stretchmode选smActualHeight。
      

  3.   

    楼上的能否将您的报表文件给我传个,我看看到底哪里问题[email protected],麻烦了
      

  4.   

    stretchmode选smMAXHeight 也是上面的结果
      

  5.   

    偶用的是 W2K、D7、FAST3.0
    并且报表比你的复杂多了,都可以实现,
    你的报表应该没有问题的
      

  6.   

    我的是win2003server+delphi2005+FAST3.0,现在也不知怎么回事
      

  7.   

    procedure Textdraw(r: trect; s: string; f: tfont; p: tfrpage; ALIGNMENT, FRAMETYP: integer);
    var
      fm: TfrMemoView;
      W, h: integer;
    begin  fm := TfrMemoView.Create;
      fm.Prop['textonly'] := true;
      fm.Prop['ALIGNMENT'] := ALIGNMENT;
      fm.Font.Assign(f);  fm.Prop['top'] := r.Top;
      fm.Prop['left'] := r.Left;
      fm.Prop['FRAMETYP'] := FRAMETYP;
      fm.Prop['width'] := r.Right - r.Left;
      fm.Prop['height'] := r.Bottom - r.Top;
      fm.Memo.Text := s;  p.Objects.Add(fm)
    end;
      

  8.   

    搞定,方法如下:(供需要的人参考)
    在band选项Allowslip选true。
    stretched项选择true。
    内容多的列memo项stretchmode选smMAXHeight ,少的选smdontstretch