我的代码:
procedure ReportExportHTML(QuickRep: TQuickRep;
const FileName: string);
var
AExportFilter : TQRGHTMLDocumentFilter;
begin
//begin
Wait('正在输出...');
QuickRep.ShowProgress := False;
AExportFilter := TQRGHTMLDocumentFilter.Create(FileName);
//下载的安装后才有
try
AExportFilter.SetHTMLBody(clWhite, '', 'alink="red"');
AExportFilter.TransparentTextBG := True;
AExportFilter.PictureDir := ExtractFileNamePart(FileName) + '.files';
AExportFilter.MultiPage := False;
AExportFilter.PageLinks := False;
CreateDir(AExportFilter.PictureDir);
QuickRep.ExportToFilter(AExportFilter)
finally
AExportFilter.Free;
end;
//EndWait;
end;
procedure ReportExportRTF(QuickRep: TQuickRep;
const FileName: string);
var
AExportFilter : TQRRTFExportFilter;
begin
//begin
Wait('正在输出...');
QuickRep.ShowProgress := False;
AExportFilter := TQRRTFExportFilter.Create(FileName);
try
ReportDesignForm.QuickRep.ExportToFilter(AExportFilter)
finally
AExportFilter.Free;
end;
//EndWait;
end;
如果需要输出样本,请告知