这个控件时Reportds,直接利用DBGRID打印的,但安装完毕后我设置中文标题而预览时就显示乱码.
而且打开源码原先的 中文注释时也成了乱码,请问问题处在什么地方?

解决方案 »

  1.   

    http://gaohz.myrice.com/print/index.htm打印部分第16个
      

  2.   

    这是个俄罗斯人写的控件,源码里不是中文注释嘛。
    中文标题乱码,是因为控件设定字符集为RUSSIAN_CHARSET打开UnitReport.pas,将
    function SetReport(aForm:TForm;DSet:TDataSet;cap:string):TQuickRep;
    var
      aReport:TQuickRep;
    begin
      aReport:=TQuickRep.Create(Application);
      with aReport do
      begin
        Parent :=aForm;
        Font.Name:='Tahoma';
        Font.Charset:=RUSSIAN_CHARSET;
        ReportTitle:=cap;
        Font.Size:=8;
        DataSet := DSet;
      end;
      Result:=aReport;
    end;中的字体,字符集设置改过来就行了