var
report: Treport;
//apprpt:CRAXDRT_TLB.TApplication;
begin
//我们可以打开一个已经生成的报表,这是动态的,可以在报表制作的时
//侯连接好数据库,当然也可以通过在delphi中调用LogonServer
 //tlogoninfo来动态连接数据库
 //report := apprpt.OpenReport('D:\Test\REPORT1.rpt');
report := Application1.OpenReport('D:\Test\REPORT1.rpt');//crOpenReportByTempCopy//*The CrOpenReportByDefault constant places a lock o
//n the RPT file preventing it from being accessed by other applications or users.
//CrOpenReportByTempCopy is often preferred since it opens a temporary
//copy of the RPT file instead. */CRViewer91.ReportSource := Report;
CRViewer91.ViewReport;
这是我的代码,
运行出在这一行
report := Application1.OpenReport('D:\Test\REPORT1.rpt');错误提示是:
[Error] testrpt.pas(37): Incompatible types: 'TReport' and 'IReport'有谁可以帮我解决,刚学delphi