找回密码
 立即注册

QQ登录

只需一步,快速开始

zhlb

金牌服务用户

25

主题

64

帖子

231

积分

金牌服务用户

积分
231
zhlb
金牌服务用户   /  发表于:2024-1-10 15:45  /   查看:1363  /  回复:1
1金币
使用oncreate无法新建空白报表,文档上写的方法也失效了,导入templates失败


这是报错信息:"export 'templates' was not found in '@grapecity/activereports/reportdesigner'

下面是文档上面的方法,文档报错内容是:Cannot read properties of undefined (reading 'FPL')


import {
  Designer as ReportDesigner,
  templates,
} from "@grapecity/activereports/reportdesigner";

designer.setReport({
        definition: fpl ? templates.FPL : templates.CPL,
      });






最佳答案

查看完整内容

您好,对应的使用可以参考下图进行实现: 先定义一个rdl报表,一个页面报表 oncreate方法中选择对应的模板: 也可以参考这个链接:https://developer.mescius.com/activereportsjs/demos/features/designer-report-loading/purejs

1 个回复

倒序浏览
最佳答案
最佳答案
Bella.YuanWyn认证
超级版主   /  发表于:2024-1-10 15:45:20
来自 2#
您好,对应的使用可以参考下图进行实现:
先定义一个rdl报表,一个页面报表


oncreate方法中选择对应的模板:

也可以参考这个链接:https://developer.mescius.com/ac ... port-loading/purejs


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

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