找回密码
 立即注册

QQ登录

只需一步,快速开始

tree1233211123

注册会员

1

主题

4

帖子

43

积分

注册会员

积分
43
最新发帖
tree1233211123
注册会员   /  发表于:2017-3-3 09:33  /   查看:4208  /  回复:6
本帖最后由 tree1233211123 于 2017-3-3 09:37 编辑

在WPF程序中,想用Spread控件实现在单元格中嵌入下拉框的功能。Spread不支持WPF,所以我写了一个Winform的窗口中含有一个Spead的控件,然后再填入WPF中。但是在运行过程中,点击Spread的单元格的下拉框提示如下错误:
  1. ************** 异常文本 **************
  2. System.Exception: Exception handled in FpSpread.WndProc ---> System.NullReferenceException: 未将对象引用设置到对象的实例。
  3.    在 FarPoint.Win.FpCombo.ShowList(Boolean bShow)
  4.    在 FarPoint.Win.FpCombo.DropDownDefaultAction()
  5.    在 FarPoint.Win.FpCombo.DropDownNotify(Object o)
  6.    在 FarPoint.Win.SEditButton.OnDropDownMouseDown(Object sender, MouseEventArgs e)
  7.    在 FarPoint.Win.ElementWindowless.OnMouseDown(MouseEventArgs e)
  8.    在 FarPoint.Win.ButtonElement.OnMouseDown(MouseEventArgs e)
  9.    在 FarPoint.Win.ElementWindowless.DoMouseDown(Object sender, MouseEventArgs e)
  10.    在 System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)
  11.    在 System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
  12.    在 FarPoint.Win.SuperEditBase.OnMouseDown(MouseEventArgs e)
  13.    在 FarPoint.Win.FpCombo.OnMouseDown(MouseEventArgs e)
  14.    在 System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
  15.    在 System.Windows.Forms.Control.WndProc(Message& m)
  16.    在 FarPoint.Win.SuperEditBase.WndProc(Message& m)
  17.    在 FarPoint.Win.FpCombo.WndProc(Message& m)
  18.    在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  19.    在 FarPoint.Win.Spread.SpreadView.a(Control A_0, MouseEventArgs A_1)
  20.    在 FarPoint.Win.Spread.SpreadView.StartCellEditing(EventArgs e, Boolean formula)
  21.    在 FarPoint.Win.Spread.SpreadView.a(Int32 A_0, Int32 A_1, MouseEventArgs A_2)
  22.    在 FarPoint.Win.Spread.SpreadView.g(MouseEventArgs A_0)
  23.    在 FarPoint.Win.Spread.FpSpread.OnMouseDown(MouseEventArgs e)
  24.    在 System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
  25.    在 System.Windows.Forms.Control.WndProc(Message& m)
  26.    在 FarPoint.Win.Spread.FpSpread.WndProc(Message& m)
  27.    --- 内部异常堆栈跟踪的结尾 ---
  28.    在 FarPoint.Win.Spread.FpSpread.WndProc(Message& m)
  29.    在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  30.    在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  31.    在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
复制代码


6 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2017-3-3 14:08:55
沙发
感谢您对该问题的反馈。
我们并不建议用户将WPF控件在Win平台下使用,很抱歉不能推测因此产生的问题。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
Helen
高级会员   /  发表于:2017-3-3 14:27:41
板凳
回复 使用道具 举报
tree1233211123
注册会员   /  发表于:2017-3-3 15:03:57
地板
Helen 发表于 2017-3-3 14:27
Spread产品线有WPF平台:
http://www.gcpowertools.com.cn/products/spread_wpf.htm

你好,请问只是自己练习学习使用的话试用也只有30天吗?过了30天就不能用了吗
回复 使用道具 举报
tree1233211123
注册会员   /  发表于:2017-3-3 15:04:02
5#
Helen 发表于 2017-3-3 14:27
Spread产品线有WPF平台:
http://www.gcpowertools.com.cn/products/spread_wpf.htm

你好,请问只是自己练习学习使用的话试用也只有30天吗?过了30天就不能用了吗
回复 使用道具 举报
tree1233211123
注册会员   /  发表于:2017-3-3 15:53:18
6#
Helen 发表于 2017-3-3 14:27
Spread产品线有WPF平台:
http://www.gcpowertools.com.cn/products/spread_wpf.htm

Spread WPF中能够设置单元格的格式吗?
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2017-3-3 18:14:46
7#
tree1233211123 发表于 2017-3-3 15:04
你好,请问只是自己练习学习使用的话试用也只有30天吗?过了30天就不能用了吗

是的,我们给用户提供30天的试用期。
过了30天不能使用。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部