请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

hptj

高级会员

72

主题

240

帖子

1170

积分

高级会员

积分
1170

活字格认证微信认证勋章元老葡萄

hptj
高级会员   /  发表于:2016-1-10 14:21  /   查看:4581  /  回复:3
用farpoint编辑excel时,当设置有合并单元格的字体属性时,经常会出错错误信息:
   在 System.Drawing.Font.GetHeight(Graphics graphics)
   在 System.Drawing.Font.GetHeight()
   在 System.Drawing.Font.get_Height()
   在 FarPoint.Win.Text.TextHelper.a(Graphics A_0, String A_1, Font A_2, RectangleF A_3, TextOrientation A_4, Boolean A_5, Boolean A_6, HotkeyPrefix A_7, StringTrimming A_8, Int32 A_9)
   在 FarPoint.Win.Text.TextHelper.Measure(Graphics g, String s, Font font, Color foreColor, RectangleF rectangle, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, Boolean wordWrap, Boolean multiline, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, Int32 drawRectHeight, Boolean adjust, Double rotationAngle, Int32 textIndent)
   在 FarPoint.Win.ElementWindowless.GetRotatedTextSize(Graphics g, String s, Font font, RectangleF r, TextOrientation textOrientation, Boolean wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, Double angle)
   在 FarPoint.Win.Spread.CellType.EditBaseCellType.GetPreferredSize(Graphics g, Size size, Appearance appearance, Object value, Single zoomFactor)
   在 FarPoint.Win.Spread.SpreadView.a(SheetView A_0, ar A_1, Int32 A_2, Int32 A_3, String A_4, ISheetSpanModel A_5, Int32 A_6, Font A_7, Graphics A_8, o3 A_9, Boolean A_10)
   在 FarPoint.Win.Spread.SpreadView.a(SheetView A_0, ar A_1, Int32 A_2, Int32 A_3, Int32 A_4, Int32 A_5, ISheetSpanModel A_6, Int32 A_7, Int32 A_8, Boolean A_9, ay[,]& A_10, ef[]& A_11, cc[]& A_12, Int32 A_13, Font A_14, Graphics A_15, pd A_16, Boolean A_17)
   在 FarPoint.Win.Spread.SpreadView.a(SheetView A_0, ar A_1, Int32 A_2, Int32 A_3, Int32 A_4, Int32 A_5, ISheetSpanModel A_6, Int32 A_7, Int32 A_8, Boolean A_9, ay[,]& A_10, ef[]& A_11, cc[]& A_12, Int32 A_13, Font A_14, pd A_15)
   在 FarPoint.Win.Spread.SpreadView.ae(Int32 A_0, Int32 A_1)
   在 FarPoint.Win.Spread.SpreadView.ad(Int32 A_0, Int32 A_1)
   在 FarPoint.Win.Spread.SpreadView.a(Int32 A_0, Int32 A_1, Int32 A_2, Int32 A_3, Boolean A_4, Boolean A_5, Int32 A_6, Int32 A_7)
   在 FarPoint.Win.Spread.SpreadView.b(Object A_0, SheetStyleModelEventArgs A_1)
   在 FarPoint.Win.Spread.Model.SheetStyleModelEventHandler.Invoke(Object sender, SheetStyleModelEventArgs e)
   在 FarPoint.Win.Spread.Model.BaseSheetStyleModel.OnChanged(SheetStyleModelEventArgs e)
   在 FarPoint.Win.Spread.Model.BaseSheetStyleModel.FireChanged(Int32 row, Int32 column, Int32 rowCount, Int32 columnCount, SheetStyleModelEventType type)
   在 FarPoint.Win.Spread.Model.DefaultSheetStyleModel.SetDirectInfo(Int32 row, Int32 column, StyleInfo info)
   在 FarPoint.Win.Spread.Cell.a()
   在 FarPoint.Win.Spread.Cell.set_Font(Font value)
   在 SpreadDesigner.SpreadDesigner.ChangeFont(String fontName, Single size, FontStyle style, Boolean toogled, Boolean isToogle) 位置 C:\Program Files (x86)\GrapeCity\Spread Studio 9\Windows Forms\v9.20.20153.0\Samples\Cs\SpreadDesigner\MainForm.cs:行号 1624
   在 SpreadDesigner.SpreadDesigner.ComboBoxFont_SelectedIndexChanged(Object sender, EventArgs e) 位置 C:\Program Files (x86)\GrapeCity\Spread Studio 9\Windows Forms\v9.20.20153.0\Samples\Cs\SpreadDesigner\MainForm.cs:行号 1564
   在 C1.Win.C1Ribbon.RibbonComboBox.OnSelectedIndexChanged(EventArgs e)
   在 C1.Win.C1Ribbon.RibbonComboBox.c()
   在 C1.Win.C1Ribbon.cc.b(ct A_0, Boolean A_1)
   在 C1.Win.C1Ribbon.cc.a(aa A_0)
   在 C1.Win.C1Ribbon.c1.e(aa A_0)
   在 C1.Win.C1Ribbon.c1.a(aa A_0, Boolean A_1, c1 A_2)
   在 C1.Win.C1Ribbon.c1.a(aa A_0, Boolean A_1, Boolean A_2)
   在 C1.Win.C1Ribbon.c1.d(aa A_0)
   在 C1.Win.C1Ribbon.bd.a(Object A_0, EventArgs A_1)
   在 C1.Win.C1Ribbon.dd.ao()
   在 C1.Win.C1Ribbon.ct.ao()
   在 C1.Win.C1Ribbon.ct.a.b()
   在 C1.Win.C1Ribbon.ct.a.a(MouseEventArgs A_0)
   在 C1.Framework.XView.OnMouseUp(MouseEventArgs e)
   在 C1.Win.C1Ribbon.c1.a.c(MouseEventArgs A_0)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 C1.Framework.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   在 System.Windows.Forms.Application.Run(Form mainForm)
   在 SpreadDesigner.Program.Main() 位置 C:\Program Files (x86)\GrapeCity\Spread Studio 9\Windows Forms\v9.20.20153.0\Samples\Cs\SpreadDesigner\Program.cs:行号 17
   在 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ThreadHelper.ThreadStart()

3 个回复

倒序浏览
frank.zhang
社区贡献组   /  发表于:2016-1-11 16:48:00
沙发
您好,

非常抱歉,没有能够重现您的问题,需要您提供一个可以重现这个问题的例子程序。
回复 使用道具 举报
hptj
高级会员   /  发表于:2016-1-11 18:20:00
板凳
回复 2楼frank.zhang的帖子

设置附件的内的字体,就会有错误

Book1.xls.zip (3.4 KB, 下载次数: 62)
回复 使用道具 举报
gw0506
超级版主   /  发表于:2016-1-12 18:44:00
地板
你这个应该和另外一个设置字体抛异常的帖子是同一个问题。
等研发确认后我给你反馈。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部