我有一个一个记录打一页的报表,表格线是在rave下用手工绘的,问题是:1、数据字段位置打得不准;2、memo字段长度过宽,超出界外;3、这样的报表线非用手绘不可吗? 

解决方案 »

  1.   

    大侠,有一个rave报表的问题,关于往报表中动态增加一列的一个程序,程序本身没有错误,您能给指点一下吗?
          MyDataView := FindRaveComponent('DataView1',nil) as TRaveDataView;  //²éÕÒmydataview
          MyField := TRaveStringField.Create(MyDataView);
          MyField.Parent := MyDataView;
          MyField.Name := 'DataView1Opt_Time';
          MyField.FieldName := ADOQuery1.Fields[0].FieldName;
          MyField.FullName := 'Loss';
          MyField.Size := 2;
          AddComponent(MyField);      MyDataBand := FindRaveComponent('DataBand',MyRegion) as TRaveDataBand;
          MyDatatext := TRavedataText.Create(MyDataBand);
          MyDataText.Parent := MyDataBand;
          MyDataText.Name := 'datatext1';
          MyDataText.Top := 0;
          MyDataText.Left := 0.4;
          MyDataText.Width := 1;
          MyDataText.Height:=200;
          MyDataText.DataView := MyDataView;
          MyDataText.DataField := MyField.FieldName;
          MyDataText.Font.Size := 10;
          MyDataText.Font.Color := Clblack;
          MyDataText.Font.Name := 'Arial';
          AddComponent(MyDataText);