找回密码
 立即注册

QQ登录

只需一步,快速开始

2293174034

初级会员

33

主题

81

帖子

218

积分

初级会员

积分
218

活字格认证微信认证勋章

2293174034
初级会员   /  发表于:2015-6-16 11:31  /   查看:7568  /  回复:10
预览报表时出现:
错误: 该报表存在错误,不能被正常处理。

经检测是数据集字段有问题,
数据集对字段的定义有什么要求么?
如字段变量名称,字段数量等的要求

10 个回复

倒序浏览
2293174034
初级会员   /  发表于:2015-6-16 11:37:00
沙发

dd

定义的字段如下:

ID,dqbm,dwbm,dwmc,khnd,spdw,
sy_hj,sy_glxj,sy_gltj,sy_glcj,sy_glkj,sy_glbj,sy_jsxj,sy_jsgj,sy_jszj,sy_jscj,sy_gq,sy_qt,
kh_hj,kh_glxj,kh_gltj,kh_glcj,kh_glkj,kh_glbj,kh_jsxj,kh_jsgj,kh_jszj,kh_jscj,kh_gq,kh_qt,
yx_hj,yx_glxj,yx_gltj,yx_glcj,yx_glkj,yx_glbj,yx_jsxj,yx_jsgj,yx_jszj,yx_jscj,yx_gq,yx_qt,
yxbl_hj,yxbl_glxj,yxbl_gltj,yxbl_glcj,yxbl_glkj,yxbl_glbj,yxbl_jsxj,yxbl_jsgj,yxbl_jszj,yxbl_jscj,yxbl_gq,yxbl_qt,
hg_hj,hg_glxj,hg_gltj,hg_glcj,hg_glkj,hg_glbj,hg_jsxj,hg_jsgj,hg_jszj,hg_jscj,hg_gq,hg_qt,
hgbl_hj,hgbl_glxj,hgbl_gltj,hgbl_glcj,hgbl_glkj,hgbl_glbj,hgbl_jsxj,hgbl_jsgj,hgbl_jszj,hgbl_jscj,hgbl_gq,hgbl_qt,
jbhg_hj,jbhg_glxj,jbhg_gltj,jbhg_glcj,jbhg_glkj,jbhg_glbj,jbhg_jsxj,jbhg_jsgj,jbhg_jszj,jbhg_jscj,jbhg_gq,jbhg_qt,
jbhgbl_hj,jbhgbl_glxj,jbhgbl_gltj,jbhgbl_glcj,jbhgbl_glkj,jbhgbl_glbj,jbhgbl_jsxj,jbhgbl_jsgj,jbhgbl_jszj,jbhgbl_jscj,jbhgbl_gq,jbhgbl_qt,
bhg_hj,bhg_glxj,bhg_gltj,bhg_glcj,bhg_glkj,bhg_glbj,bhg_jsxj,bhg_jsgj,bhg_jszj,bhg_jscj,bhg_gq,bhg_qt,
bhgbl_hj,bhgbl_glxj,bhgbl_gltj,bhgbl_glcj,bhgbl_glkj,bhgbl_glbj,bhgbl_jsxj,bhgbl_jsgj,bhgbl_jszj,bhgbl_jscj,bhgbl_gq,bhgbl_qt,
wddc_hj,wddc_glxj,wddc_gltj,wddc_glcj,wddc_glkj,wddc_glbj,wddc_jsxj,wddc_jsgj,wddc_jszj,wddc_jscj,wddc_gq,wddc_qt,
wddcbl_hj,wddcbl_glxj,wddcbl_gltj,wddcbl_glcj,wddcbl_glkj,wddcbl_glbj,wddcbl_jsxj,wddcbl_jsgj,wddcbl_jszj,wddcbl_jscj,wddcbl_gq,wddcbl_qt,
wkh_hj,wkh_glxj,wkh_gltj,wkh_glcj,wkh_glkj,wkh_glbj,wkh_jsxj,wkh_jsgj,wkh_jszj,wkh_jscj,wkh_gq,wkh_qt

////////////////////////////////////////////////////////////////////////////////////////////////////////////////

public List<KhshbRecViewModel> testList()
        {

            List<KhshbRecViewModel> khList = new List<KhshbRecViewModel>();
            KhshbRecViewModel kh = new KhshbRecViewModel();

            kh.ID=0;
            kh.dqbm = "00102"; kh.dwbm = "000"; kh.dwmc = "asdfs"; kh.khnd = "2013"; kh.spdw = "全部";
            kh.sy_hj=0;kh.sy_glxj=0;kh.sy_gltj=0;kh.sy_glcj=0;kh.sy_glkj=0;kh.sy_glbj=0;kh.sy_jsxj=0;kh.sy_jsgj=0;kh.sy_jszj=0;kh.sy_jscj=0;kh.sy_gq=0;kh.sy_qt=0;
            kh.kh_hj = 0; kh.kh_glxj = 0; kh.kh_gltj = 0; kh.kh_glcj = 0; kh.kh_glkj = 0; kh.kh_glbj = 0; kh.kh_jsxj = 0; kh.kh_jsgj = 0; kh.kh_jszj = 0; kh.kh_jscj = 0; kh.kh_gq = 0; kh.kh_qt = 0;
            kh.yx_hj = 0; kh.yx_glxj = 0; kh.yx_gltj = 0; kh.yx_glcj = 0; kh.yx_glkj = 0; kh.yx_glbj = 0; kh.yx_jsxj = 0; kh.yx_jsgj = 0; kh.yx_jszj = 0; kh.yx_jscj = 0; kh.yx_gq = 0; kh.yx_qt = 0;
            kh.yxbl_hj = 0; kh.yxbl_glxj = 0; kh.yxbl_gltj = 0; kh.yxbl_glcj = 0; kh.yxbl_glkj = 0; kh.yxbl_glbj = 0; kh.yxbl_jsxj = 0; kh.yxbl_jsgj = 0; kh.yxbl_jszj = 0; kh.yxbl_jscj = 0; kh.yxbl_gq = 0; kh.yxbl_qt = 0;
            kh.hg_hj = 0; kh.hg_glxj = 0; kh.hg_gltj = 0; kh.hg_glcj = 0; kh.hg_glkj = 0; kh.hg_glbj = 0; kh.hg_jsxj = 0; kh.hg_jsgj = 0; kh.hg_jszj = 0; kh.hg_jscj = 0; kh.hg_gq = 0; kh.hg_qt = 0;
            kh.hgbl_hj = 0; kh.hgbl_glxj = 0; kh.hgbl_gltj = 0; kh.hgbl_glcj = 0; kh.hgbl_glkj = 0; kh.hgbl_glbj = 0; kh.hgbl_jsxj = 0; kh.hgbl_jsgj = 0; kh.hgbl_jszj = 0; kh.hgbl_jscj = 0; kh.hgbl_gq = 0; kh.hgbl_qt = 0;
            kh.jbhg_hj = 0; kh.jbhg_glxj = 0; kh.jbhg_gltj = 0; kh.jbhg_glcj = 0; kh.jbhg_glkj = 0; kh.jbhg_glbj = 0; kh.jbhg_jsxj = 0; kh.jbhg_jsgj = 0; kh.jbhg_jszj = 0; kh.jbhg_jscj = 0; kh.jbhg_gq = 0; kh.jbhg_qt = 0;
            kh.jbhgbl_hj = 0; kh.jbhgbl_glxj = 0; kh.jbhgbl_gltj = 0; kh.jbhgbl_glcj = 0; kh.jbhgbl_glkj = 0; kh.jbhgbl_glbj = 0; kh.jbhgbl_jsxj = 0; kh.jbhgbl_jsgj = 0; kh.jbhgbl_jszj = 0; kh.jbhgbl_jscj = 0; kh.jbhgbl_gq = 0; kh.jbhgbl_qt = 0;
            kh.bhg_hj = 0; kh.bhg_glxj = 0; kh.bhg_gltj = 0; kh.bhg_glcj = 0; kh.bhg_glkj = 0; kh.bhg_glbj = 0; kh.bhg_jsxj = 0; kh.bhg_jsgj = 0; kh.bhg_jszj = 0; kh.bhg_jscj = 0; kh.bhg_gq = 0; kh.bhg_qt = 0;
            kh.bhgbl_hj = 0; kh.bhgbl_glxj = 0; kh.bhgbl_gltj = 0; kh.bhgbl_glcj = 0; kh.bhgbl_glkj = 0; kh.bhgbl_glbj = 0; kh.bhgbl_jsxj = 0; kh.bhgbl_jsgj = 0; kh.bhgbl_jszj = 0; kh.bhgbl_jscj = 0; kh.bhgbl_gq = 0; kh.bhgbl_qt = 0;
            kh.wddc_hj = 0; kh.wddc_glxj = 0; kh.wddc_gltj = 0; kh.wddc_glcj = 0; kh.wddc_glkj = 0; kh.wddc_glbj = 0; kh.wddc_jsxj = 0; kh.wddc_jsgj = 0; kh.wddc_jszj = 0; kh.wddc_jscj = 0; kh.wddc_gq = 0; kh.wddc_qt = 0;
            kh.wddcbl_hj = 0; kh.wddcbl_glxj = 0; kh.wddcbl_gltj = 0; kh.wddcbl_glcj = 0; kh.wddcbl_glkj = 0; kh.wddcbl_glbj = 0; kh.wddcbl_jsxj = 0; kh.wddcbl_jsgj = 0; kh.wddcbl_jszj = 0; kh.wddcbl_jscj = 0; kh.wddcbl_gq = 0; kh.wddcbl_qt = 0;
            kh.wkh_hj = 0; kh.wkh_glxj = 0; kh.wkh_gltj = 0; kh.wkh_glcj = 0; kh.wkh_glkj = 0; kh.wkh_glbj = 0; kh.wkh_jsxj = 0; kh.wkh_jsgj = 0; kh.wkh_jszj = 0; kh.wkh_jscj = 0; kh.wkh_gq = 0; kh.wkh_qt = 0;

            khList.Add(kh);
            return khList;
        }
回复 使用道具 举报
2293174034
初级会员   /  发表于:2015-6-16 11:40:00
板凳

本帖子中包含更多资源

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

x
回复 使用道具 举报
2293174034
初级会员   /  发表于:2015-6-16 11:43:00
地板
再测试程序中,如果把sy_hj,sy_glxj,sy_gltj,sy_glcj,sy_glkj,sy_glbj,sy_jsxj,sy_jsgj,sy_jszj,sy_jscj,sy_gq,sy_qt,
kh_hj,kh_glxj,kh_gltj,kh_glcj,kh_glkj,kh_glbj,kh_jsxj,kh_jsgj,kh_jszj,kh_jscj,kh_gq,kh_qt,
yx_hj,yx_glxj,yx_gltj,yx_glcj,yx_glkj,yx_glbj,yx_jsxj,yx_jsgj,yx_jszj,yx_jscj,yx_gq,yx_qt,
yxbl_hj,yxbl_glxj,yxbl_gltj,yxbl_glcj,yxbl_glkj,yxbl_glbj,yxbl_jsxj,yxbl_jsgj,yxbl_jszj,yxbl_jscj,yxbl_gq,yxbl_qt,
hg_hj,hg_glxj,hg_gltj,hg_glcj,hg_glkj,hg_glbj,hg_jsxj,hg_jsgj,hg_jszj,hg_jscj,hg_gq,hg_qt,
hgbl_hj,hgbl_glxj,hgbl_gltj,hgbl_glcj,hgbl_glkj,hgbl_glbj,hgbl_jsxj,hgbl_jsgj,hgbl_jszj,hgbl_jscj,hgbl_gq,hgbl_qt,
jbhg_hj,jbhg_glxj,jbhg_gltj,jbhg_glcj,jbhg_glkj,jbhg_glbj,jbhg_jsxj,jbhg_jsgj,jbhg_jszj,jbhg_jscj,jbhg_gq,jbhg_qt,
jbhgbl_hj,jbhgbl_glxj,jbhgbl_gltj,jbhgbl_glcj,jbhgbl_glkj,jbhgbl_glbj,jbhgbl_jsxj,jbhgbl_jsgj,jbhgbl_jszj,jbhgbl_jscj,jbhgbl_gq,jbhgbl_qt,
bhg_hj,bhg_glxj,bhg_gltj,bhg_glcj,bhg_glkj,bhg_glbj,bhg_jsxj,bhg_jsgj,bhg_jszj,bhg_jscj,bhg_gq,bhg_qt,
bhgbl_hj,bhgbl_glxj,bhgbl_gltj,bhgbl_glcj,bhgbl_glkj,bhgbl_glbj,bhgbl_jsxj,bhgbl_jsgj,bhgbl_jszj,bhgbl_jscj,bhgbl_gq,bhgbl_qt,
wddc_hj,wddc_glxj,wddc_gltj,wddc_glcj,wddc_glkj,wddc_glbj,wddc_jsxj,wddc_jsgj,wddc_jszj,wddc_jscj,wddc_gq,wddc_qt,
wddcbl_hj,wddcbl_glxj,wddcbl_gltj,wddcbl_glcj,wddcbl_glkj,wddcbl_glbj,wddcbl_jsxj,wddcbl_jsgj,wddcbl_jszj,wddcbl_jscj,wddcbl_gq,wddcbl_qt,
wkh_hj,wkh_glxj,wkh_gltj,wkh_glcj,wkh_glkj,wkh_glbj,wkh_jsxj,wkh_jsgj,wkh_jszj,wkh_jscj,wkh_gq,wkh_qt
字段删除掉,重新增加一部分字段可以正常预览
回复 使用道具 举报
2293174034
初级会员   /  发表于:2015-6-16 11:50:00
5#
字段对字符'_'有什么要求么?
字段定义是通过复制其他文本中的字段名称,
是不是字段必须手动录入?

如果我通过写字板修改报表模板内容,保存为unicode形式,
再通过报表编辑器打开,第一次打开正常,保存,再次打开时内容无法显示,
如果再次通过写字板打开,发现内容为空
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-6-16 15:13:00
6#
您好,
常用字段定义的方式:
1.通过数据库自动导入
2.手动导入

您描述,复制其它文本中的字段,是指在文档编辑器中操作吗?
我们在实际操作中,使用UE这样的专业编辑器进行操作,没有出现问题。
回复 使用道具 举报
2293174034
初级会员   /  发表于:2015-6-16 16:59:00
7#
在报表编辑器中,把以前的数据集删除,
然后增加数据集,增加字段,字段名,字段值全部手动录入,
不存在问题,
出问题是增加字段后,字段名,字段值是复制粘贴过来的.
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-6-16 17:49:00
8#
您好,
您可以上传两个报表模板,我们可以对比下,看下复制字段和手动增加会产生哪些不同的地方?
回复 使用道具 举报
2293174034
初级会员   /  发表于:2015-6-17 12:06:00
9#
把数据集字段全部手工输入了之后,预览显示正常,

以前的报表模板已经删除.
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-6-17 16:28:00
10#
您好,
您反馈的这个问题,我们没有能够重现。因为RDLX是XML格式,所以怀疑是标签错误导致的。
目前,这种直接操作XML的方式容易出错,所以我们并不推荐使用。您可以在使用的过程中,再观察一下,如果有类似的问题出现,可以将模板上传到论坛。
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部