找回密码
 立即注册

QQ登录

只需一步,快速开始

ding3359

初级会员

25

主题

67

帖子

216

积分

初级会员

积分
216

活字格认证

ding3359
初级会员   /  发表于:2015-3-26 14:04  /   查看:9416  /  回复:16
请问以下的错误信息有可能是什么问题?

错误明细:
GrapeCity.ActiveReports.ReportException: 发生了一个意外错误。更多信息: 'attributeDefinition' ---> System.ArgumentException: attributeDefinition
   在 #2wA.#eWe.#Zcf(#7Te definitionObject)
   在 #2wA.#mWe.#U.#nWe.#adf(#7Te[] attributesAndFilters, #lWe[] memberAndFilterValues)
   在 GrapeCity.BI.Data.Implementation.AggregateTable.#5af(#7Te[] tupleDefinition, #lWe[] tupleMembers)
   在 GrapeCity.BI.Data.Implementation.AggregateTable.<GetDetailRecordsForTuple>d__0.MoveNext()
   在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   在 #2wA.#5Ve.#U.#7Ve.#Fcf()
   在 #2wA.#5Ve.#Ecf(IEnumerable`1 records, #8Ve whichRecord, Tuple tuple)
   在 #2wA.#vWe.get_Item(String fieldName)
   在 GrapeCity.ActiveReports.Expressions.FieldReferenceExpression.#34(#nZe context)
   在 GrapeCity.ActiveReports.Expressions.IdentifierExpressionInfo.#FDk(#nZe context)
   在 GrapeCity.ActiveReports.Expressions.IdentifierExpressionInfo.#34(#nZe context)
   在 GrapeCity.ActiveReports.Expressions.FunctionExpressionInfo.#FDk(#nZe context)
   在 GrapeCity.ActiveReports.Expressions.FunctionExpressionInfo.#34(#nZe context)
   在 GrapeCity.ActiveReports.Expressions.FunctionExpressionInfo.#FDk(#nZe context)
   在 GrapeCity.ActiveReports.Expressions.FunctionExpressionInfo.#34(#nZe context)
   在 #XwA.#mZe.Evaluate(ExpressionInfo expression)
   在 GrapeCity.BI.Data.Implementation.Filtering.SimpleComparisonFilter.#19e(IExpressionEvaluatorService evaluator)
   在 #WwA.#0Ue.#5AA(IEnumerable dataToFilter, #RTe evaluatorFactory, #YUe filterItemRemovedCallback, Boolean&amp; isResultEmpty)
   在 #WwA.#WUe.#oaf(#MVe unfilteredTupleSet, Boolean&amp; isResultEmpty)
   在 #2wA.#fsb.#ybf(#WUe filtersToApplyToDescendents, Tuple ancestorTuple, Boolean&amp; hasDescendents, Boolean&amp; totalInserted, Boolean&amp; onlyTotal)
   在 #2wA.#wWe.#U.#xWe.#U.#yWe.#8af()
   在 #HyA.#lAA.#kDf(#NZe axisGroupings, IList&amp; leafMembers, #nAA&amp; rootTotalMember)
   在 #HyA.#lAA.#jDf()
   在 #HyA.#lAA..ctor(#oAA renderingContext, DataRegionDataInfo dataRegionInfo, IDataScope parentScope)
   在 #wxA.#UzA.#hoT(#oAA renderingContext, IDataScopeInternal parent, DataRegionDataInfo info)
   在 #wxA.#UzA.#2LA(#oAA reportRenderingContext, IEnumerable`1 reportItemDefinitions, IDataScopeInternal currentDataContext, IList`1 targetList)
   在 #wxA.#UzA.#2LA(#oAA reportRenderingContext, IEnumerable`1 reportItemDefinitions, IDataScopeInternal currentDataContext, IList`1 targetList)
   在 #wxA.#UzA.Create(#oAA reportRenderingContext, IEnumerable`1 rdlReportItems, IDataScopeInternal dataContext)
   在 GrapeCity.ActiveReports.Rendering.Components.BodyDataScope.#4KA(String reportItemName)
   在 #wxA.#wzA.#WKA(IDataScopeInternal bodyDataScope)
   在 #wxA.#wzA.get_ReportItems()
   在 #sxA.#j4e.get_ReportItems()
   在 #sxA.#l3e.#Qvf()
   在 #sxA.#l3e.Measure(LayoutContext context)
   在 #sxA.#j4e.Measure(LayoutContext context)
   在 #sxA.#l3e.#Mvf(LayoutContext context, Single width, Single height)
   在 #sxA.#l3e.Measure(LayoutContext context)
   在 #sxA.#l3e.#Mvf(LayoutContext context, Single width, Single height)
   在 #sxA.#l3e.Measure(LayoutContext context)
   在 #sxA.#93e.#5yf()
   在 #sxA.#93e.#Dxf(#S2e masterTree)
   在 #sxA.#93e.BuildLayout()
   在 GrapeCity.ActiveReports.Layout.Engine.BuildLayout(LayoutInfo layoutInfo)
   在 #GPr.#RLf.#NNf(IReport report, TargetDeviceCapabilities targetDevice, LayoutNotificationCallback callback)
   在 GrapeCity.ActiveReports.Export.Image.Page.ImageRenderingExtension.Render(IReport report, StreamProvider streams, NameValueCollection settings)
   在 GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh, Boolean forceParameterDataRefresh)
   --- 内部异常堆栈跟踪的结尾 ---
   在 GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh, Boolean forceParameterDataRefresh)
   在 GrapeCity.ActiveReports.Viewer.Win.Rdlx.RdlReport.<>c__DisplayClassf.<LoadImpl>b__b()
   在 GrapeCity.ActiveReports.Viewer.Win.AsyncLoader.<>c__DisplayClass7.#cAz(Object , DoWorkEventArgs )
   在 System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   在 System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

16 个回复

倒序浏览
frank.zhang
社区贡献组   /  发表于:2015-3-26 16:11:00
沙发
您好,
由于没有更多的信息,从错误的含义上,我理解是某个属性错误了。您可以尝试用删除法,以确定那个控件报错。先备份,然后把模板上的控件一个一个删除,看直到删除哪个后,就不再报错。确定报错的控件,再查看这个控件的参数设置。
回复 使用道具 举报
ding3359
初级会员   /  发表于:2015-3-27 13:29:00
板凳
回复 2楼frank.zhang的帖子

能确定是控件已经缩减了不少查错范围。
奇怪的是我把主报表和子报表分开预览就没问题了,难道是给子报表传的参数据值有问题?我问一下:子报表的参数是多值的,我直接传个文本值过去有问题吗?
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-3-27 14:32:00
地板
您好,
经过测试,如果使用传递一个参数,直接传递。传递多个参数,使用多行。
使用多值,没有能够正常显示,但到底能否使用多值,我需要再调查一下。
以下是报表参数的解释:
允许空值: 选中此复选框,将允许给参数设置一个空值。
允许空白值:选中此复选框,将允许给参数设置一个空白值。
多值:选中此复选框,将允许用户从可选值列表中为参数设置多个值。
多行: 选中此复选框,将允许给参数设置一个多行的值。
回复 使用道具 举报
ding3359
初级会员   /  发表于:2015-3-28 10:40:00
5#
回复 4楼frank.zhang的帖子

错了,我是使用多选类型的文本参数,预览时是个COMBOBOX控件。
回复 使用道具 举报
ding3359
初级会员   /  发表于:2015-3-28 13:19:00
6#
回复 4楼frank.zhang的帖子

我好像发现一个BUG!
当子报表中的控件有加入过滤条件时,子报表单独预览没有问题,在主报表中就会报上面的错。
比如TABLE控件,随便加个过滤条件。
版本号8.0
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-3-30 13:54:00
7#
您好,
您能不能提供一个报表模板或者工程,方便我们能够重现问题。
回复 使用道具 举报
ding3359
初级会员   /  发表于:2015-3-30 22:10:00
8#
回复 7楼frank.zhang的帖子




我给你重现了! 要用SQL,看看有没有其它办法实现这种效果先吧。

本帖子中包含更多资源

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

x
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-3-31 14:33:00
9#
您好,
问题已经收到,正在调查。
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-4-1 12:01:00
10#
您好,
我在您的模板基础上修改下数据集,传参数给子报表,并查询数据。

本帖子中包含更多资源

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

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