Win7 WinForm字体不支持样式“常规”错误

时间:2018-04-15 20:06:44

标签: c# winforms fonts windows-7 font-style

我有一个WinForm应用程序。其中有一些Form,所有这些都是英文的,只有一个Form是波斯语。我已经在各种机器上安装了这个应用程序,但今天安装完成后,我发现错误告诉我:

  

字体“B Koodak”不支持“常规”样式。

我真的不记得我在这种形式下使用过这种风格。我已经检查了他们所有人都在“大胆” 我还有该表单上的所有字体到另一个和更新的目标机器,但错误仍然存​​在。 就在今天,我已经在运行不同版本Windows的六台机器上安装了这个,但是这个错误只出现在Windows 7的机器上。在Windows 8和Windows 10上没有错误,一切正常。

我还在网上搜索了这个错误 - 有人建议重新安装字体。我试过了,但没有成功......

错误详情如下:

 See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

********** Exception Text **********
System.ArgumentException: Font 'B Koodak' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(FontFamily family, Single emSize)
   at Stimulsoft.Report.StiReportObjectStringConverter.ConvertStringToFont(String str)
   at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject2(String str, Type type)
   at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject(String str, Type type)
   at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
   at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
   at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
   at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
   at Stimulsoft.Base.Serializing.StiSerializing.Deserialize(Object obj, Stream stream, String application)
   at Stimulsoft.Report.SaveLoad.StiXmlReportSLService.Load(StiReport report, Stream stream)
   at Stimulsoft.Report.StiReport.Load(StiReportSLService service, Stream stream)
   at Stimulsoft.Report.StiReport.Load(Stream stream)
   at Stimulsoft.Report.StiReport.LoadFromString(String reportStr)
   at Stimulsoft.Report.StiReport.LoadPackedReportFromString(String reportStr)
   at Stimulsoft.Report.StiReport.set_ReportSource(String value)
   at Beta_Partlist_Generator.frmPriceList.InitializeComponent()
   at Beta_Partlist_Generator.frmPriceList..ctor()
   at Beta_Partlist_Generator.MainWin.btnPriceList_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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, Int32 msg, IntPtr wparam, IntPtr lparam)
********** Loaded Assemblies **********
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
—------------------------------------—
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
—------------------------------------—
Beta Partlist Generator
    Assembly Version: 1.4.1.1
    Win32 Version: 1.4.1.1
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Beta%20Partlist%20Generator.exe
—------------------------------------—
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
—------------------------------------—
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
—------------------------------------—
System.Data.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
—------------------------------------—
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
—------------------------------------—
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
—------------------------------------—
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
—------------------------------------—
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
—------------------------------------—
DevComponents.DotNetBar2
    Assembly Version: 10.4.0.1
    Win32 Version: 10.4.0.1
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/DevComponents.DotNetBar2.DLL
—------------------------------------—
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
—------------------------------------—
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
—------------------------------------—
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
—------------------------------------—
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
—------------------------------------—
System.Runtime.Caching
    Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Caching/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
—------------------------------------—
Microsoft.SqlServer.Smo
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2000.8 ((SQL14_RTM).140220-1752)
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Microsoft.SqlServer.Smo.DLL
—------------------------------------—
Microsoft.SqlServer.Management.Sdk.Sfc
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2000.8 ((SQL14_RTM).140220-1752)
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Microsoft.SqlServer.Management.Sdk.Sfc.DLL
—------------------------------------—
Microsoft.SqlServer.ConnectionInfo
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2000.8 ((SQL14_RTM).140220-1752)
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Microsoft.SqlServer.ConnectionInfo.DLL
—------------------------------------—
Microsoft.SqlServer.SqlEnum
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2000.8 ((SQL14_RTM).140220-1752)
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Microsoft.SqlServer.SqlEnum.DLL
—------------------------------------—
Microsoft.SqlServer.SqlClrProvider
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2000.8 ((SQL14_RTM).140220-1752)
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Microsoft.SqlServer.SqlClrProvider.DLL
—------------------------------------—
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
—------------------------------------—
Stimulsoft.Report
    Assembly Version: 2015.2.0.0
    Win32 Version: 2015.2.0.0
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Stimulsoft.Report.DLL
—------------------------------------—
Stimulsoft.Base
    Assembly Version: 2015.2.0.0
    Win32 Version: 2015.2.0.0
    CodeBase: file:///C:/Users/rep5/AppData/Local/Apps/2.0/YPE25L3A.M0Y/C0HW6ZB7.A0G/beta..tion_1c5c6ab4a07f428e_0001.0004_ab8ae97963efb4e0/Stimulsoft.Base.DLL
—------------------------------------—

********** JIT Debugging **********
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

0 个答案:

没有答案