找回密码
 立即注册

QQ登录

只需一步,快速开始

speed00

中级会员

42

主题

97

帖子

500

积分

中级会员

积分
500
speed00
中级会员   /  发表于:2020-12-2 11:31  /   查看:2795  /  回复:3
你好,我使用多线程对表格取值,填充
在获取某个字段的值时报了错:请问为什么会出现这种问题,和多线程有关系吗?

System.ArgumentException: 已添加了具有相同键的项。
   在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   在 GrapeCity.Spreadsheet.GenericStorage`1.Add(T value, Int32 refCount)
   在 GrapeCity.Spreadsheet.GenericStorage`1.Intern(T& value, Int32 refCount)
   在 GrapeCity.Spreadsheet.Win.CompositorUtils.Compose(Worksheet worksheet, StyleData& prioritizeStyleData, StyleData& composeStyleData, Boolean isLightCompose)
   在 GrapeCity.Spreadsheet.Win.BelowLayerTableCompositor.GrapeCity.Spreadsheet.IStyleFormatCompositor.Composite(Worksheet worksheet, Int32 row, Int32 column, StyleData& aboveStyle)
   在 GrapeCity.Spreadsheet.Styles.GetRenderStyle(Worksheet worksheet, Int32 row, Int32 column, CfExecutedResult& results)
   在 FarPoint.Win.Spread.SheetView.a(Int32 A_0, Int32 A_1, CfExecutedResult& A_2)
   在 FarPoint.Win.Spread.SheetView.aj(Int32 A_0, Int32 A_1)
   在 FarPoint.Win.Spread.Cell.a(ISheetStyleModel A_0, Boolean A_1, IEditor& A_2, IFormatter& A_3)
   在 FarPoint.Win.Spread.Cell.get_Text()
   在 Jxerp.formContractRichTextSentence.SetGridColumnValue() 位置 D:\Jxerp\ProductManagement\formContractRichTextSentence.cs:行号 4861



3 个回复

倒序浏览
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2020-12-2 11:57:05
沙发
你好,你咨询的应该是Spread的问题,可以在该 地址进行问题的提问发帖:https://gcdn.grapecity.com.cn/fo ... display&fid=232
回复 使用道具 举报
speed00
中级会员   /  发表于:2020-12-2 13:17:13
板凳
谢谢,放错地方了
回复 使用道具 举报
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2020-12-2 13:45:13
地板
不客气
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部