找回密码
 立即注册

QQ登录

只需一步,快速开始

libonjls

注册会员

6

主题

8

帖子

32

积分

注册会员

积分
32
libonjls
注册会员   /  发表于:2017-7-4 11:23  /   查看:2794  /  回复:1
本帖最后由 Lenka.Guo 于 2017-7-4 14:34 编辑

GrapeCity.ActiveReports.PageReport reportDef = new GrapeCity.ActiveReports.PageReport(new FileInfo(filepath));
具体如何操作

1 个回复

倒序浏览
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-7-4 14:34:17
沙发
参考代码:对于一些控件不了解在代码层次如何访问,可参考本地示例CreateReport,这个示例是完全的用代码创建一个报表,可以从中获取很多写法C:\Users\您的计算机名\Documents\GrapeCity Samples\ActiveReports 11\Page Reports And RDL Reports\API\CreateReport


  1. PageReport report = new PageReport();
  2.             var textbox=report.Report.Body.ReportItems[0] as TextBox;
  3.             textbox.Top = "10cm";
  4.             textbox.Left = "8cm";
复制代码




回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部