shaohuatsou 发表于 2024-1-10 20:46:26

哪位好心大哥帮忙去DEVEXPRESS技术支持咨询一下这个问题?

---------------------------

---------------------------
Object reference not set to an instance of an object.

   at DevExpress.Utils.Html.Internal.CssFontProperties.GetUnit(Font parentFont, Font defaultFont)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.GetFont(CssStyle style, IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args, Font parentFont)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.GetFont(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.CalcFont(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.CalcProperties(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.Calc(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.Layout.DxHtmlFlexLayout.CalcElement(DxHtmlElementInfoBase element, IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args, Boolean columnLayout, Int32 offsetX, Int32 offsetY, Int32 forcedWidth, Int32 forcedHeight)

   at DevExpress.Utils.Html.Layout.DxHtmlFlexLayout.CalcRowLayout(DxHtmlElementInfoBase elementInfo, List`1 children, IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args, Int32& minElementWidth)

   at DevExpress.Utils.Html.Layout.DxHtmlFlexLayout.CalcCore(IDxHtmlGraphicsCache cache, DxHtmlElementInfoBase elementInfo, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.CalcBounds(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.Calc(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.Layout.DxHtmlFlowLayout.CalcCore(IDxHtmlGraphicsCache cache, DxHtmlElementInfoBase elementInfo, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.CalcBounds(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.Calc(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.Layout.DxHtmlFlowLayout.CalcCore(IDxHtmlGraphicsCache cache, DxHtmlElementInfoBase elementInfo, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.CalcBounds(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.Calc(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.Layout.DxHtmlFlowLayout.CalcCore(IDxHtmlGraphicsCache cache, DxHtmlElementInfoBase elementInfo, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.CalcBounds(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlElementInfoBase.Calc(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlRootElementInfo.Calc(IDxHtmlGraphicsCache cache, DxHtmlElementCalculationArgs args)

   at DevExpress.Utils.Html.ViewInfo.DxHtmlRootElementInfo.Calc(IDxHtmlGraphicsCache cache, Point location, Size size, Font defaultFont, Color defaultForeColor, DxHtmlLayoutChangeActions layoutChangeActions)

   at DevExpress.Utils.DirectXForm.Painter.DirectXFormPainterBase.CalcHtmlTemplateCore(GraphicsCacheDxHtmlWrapper htmlCache, Size size, Point offset)

   at DevExpress.Utils.DirectXForm.Painter.DirectXFormPainterBase.CalcHtmlTemplate(GraphicsCache cache)

   at DevExpress.Utils.DirectXForm.Painter.DirectXFormPainterBase.CheckHtml()

   at DevExpress.Utils.DirectXForm.Painter.DirectXFormPainterBase.CheckReady()

   at DevExpress.Skins.XtraForm.FormPainter.get_Margins()

   at DevExpress.Skins.XtraForm.FormPainter.get_CaptionBounds()

   at DevExpress.Skins.XtraForm.FormPainter.GetCaptionDrawBounds()

   at DevExpress.Utils.DirectXForm.Painter.DirectXFormPainterBase.DrawFrameNC(Message msg, Boolean drawBorders)

   at DevExpress.Skins.XtraForm.FormPainter.NCActivate(Message& msg)

   at DevExpress.Utils.DirectXForm.Painter.DirectXFormPainterBase.NCActivate(Message& msg)

   at DevExpress.Skins.XtraForm.FormPainter.DoWndProc(Message& msg)

   at DevExpress.XtraEditors.XtraForm.ProcessByPainter(Message& msg)

   at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)

   at DevExpress.XtraEditors.DirectXFormBase.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
---------------------------
确定   
---------------------------
我在用xtramessagebox弹出消息的时候用了HtmlTemplate,会偶发出现上面的错误

我版本是DEVEXPRESS 22.2.6版本,.NET 6.0

页: [1]
查看完整版本: 哪位好心大哥帮忙去DEVEXPRESS技术支持咨询一下这个问题?