![]() |
|
||||||||||||||
| | 网站首页 | 数据库教程 | web编程 | 服务器 | 程序设计 | | ||
|
||
|
|||||
| Crystal report viewer 控件TCrystalActiveXReportViewer的使用 | |||||
作者:佚名 文章来源:不详 点击数: 更新时间:2007-9-12 ![]() |
|||||
|
正在装载数据…… procedure TGL_CC_ReportCollection.OpenReport( const ReportFileName: string;fromMenuPrinc : Boolean); var FormCrystal : TForm; begin try Screen.Cursor := crHourGlass; try FormCrystal := TFormCrystal.Create(Forms.Application); FormCrystal.Name := 'TFormCrystal'; Try CrystalActiveXReportViewer := TCrystalActiveXReportViewer.Create(FormCrystal); oApp :=CreateOleObject('CrystalRuntime.Application'); oRpt:=oApp.openreport(ReportFileName,1); CrystalActiveXReportViewer.ReportSource := oRpt; InitializeReport(CrystalActiveXReportViewer, FormCrystal); ShowReport(CrystalActiveXReportViewer, FormCrystal); End; (* Try *) except on E:Exception do begin raise; end; // on..end end; // try..except finally Screen.Cursor := crDefault; end; // try..finally end; // OpenReport..end 本文来源:http://blog.csdn.net/looyo/archive/2007/09/03/1770004.aspx
|
|||||
| 文章录入:admin 责任编辑:admin | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 | 网站地图 | 管理登录 | | |||
|