zhengwei_cq 发表于 2022-4-19 12:52:45

JSViewer无预览打印

您 好,无预览打印时报错:

Bella.Yuan 发表于 2022-4-19 12:52:46

zhengwei_cq 发表于 2022-4-19 15:42
我的报表本来是没有参数的,并且我发现加不加参数都报这个错然后我在网上查了一下,是不是你们的插件中的 ...

您好,您先预览报表看看能否正常预览,目前根据您的截图错误推测是报表文件未找到导致的,您先预览看看。

Bella.Yuan 发表于 2022-4-19 13:36:27

您好,根据截图无法推断问题根源,建议您参考下面的教程检查一下自己的代码:
JSViewer无预览打印
https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=84024&fromuid=65049
(出处: 葡萄城产品技术社区)

zhengwei_cq 发表于 2022-4-19 14:14:46

本帖最后由 zhengwei_cq 于 2022-4-19 14:17 编辑

Bella.Yuan 发表于 2022-4-19 13:36
您好,根据截图无法推断问题根源,建议您参考下面的教程检查一下自己的代码:
JSViewer无预览打印
https: ...我是按照这个文档来的,但是还是报错,请帮我看看,谢了。。。



TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
    at Function.o (<anonymous>:1:83)
    at loadViewer (http://localhost:8010/distribution/index?menuId=3a0217cd-5ddb-87e2-a3c6-882b3bde440b:808:13)
    at u.onDistrivoucherPrint (http://localhost:8010/distribution/index?menuId=3a0217cd-5ddb-87e2-a3c6-882b3bde440b:799:13)
    at Function.<anonymous> (http://localhost:8010/res.axd?js=F.js&t=637791964465753562:12:71592)
    at Function.each (http://localhost:8010/res.axd?js=F.js&t=637791964465753562:2:3003)
    at u.trigger (http://localhost:8010/res.axd?js=F.js&t=637791964465753562:12:71500)
    at u.o1Oo1 (http://localhost:8010/res.axd?js=F.js&t=637791964465753562:12:71852)
    at u.o1lI1 (http://localhost:8010/res.axd?js=F.js&t=637791964465753562:12:128675)
    at HTMLAnchorElement.i (http://localhost:8010/res.axd?js=F.js&t=637791964465753562:2:88757)
    at HTMLAnchorElement.dispatch (http://localhost:8010/res.axd?js=F.js&t=637791964465753562:2:43064)

wengMQ 发表于 2022-4-19 15:41:18

reportParameters 看下是不是没给参数值

wengMQ 发表于 2022-4-19 15:41:49

GrapeCity.ActiveReports.JSViewer.print({ reportID: '无预览打印.rdlx', reportParameters: [{ name: 'P1', values: ['1024'] }, { name: 'P2', values:          ['1010'] }] });
    }

zhengwei_cq 发表于 2022-4-19 15:42:34

本帖最后由 zhengwei_cq 于 2022-4-19 15:46 编辑

wengMQ 发表于 2022-4-19 15:41
reportParameters 看下是不是没给参数值
我的报表本来是没有参数的,并且我发现加不加参数都报这个错然后我在网上查了一下,是不是你们的插件中的方法,是严格模式的,然后用了callee方法的原因
页: [1]
查看完整版本: JSViewer无预览打印