BUG: "????? ???? ?? ????? ????? ??? ?????" ??? ??? ????? Excel

?????? ????????? ?????? ?????????
???? ???????: 320369 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ??? ????? Microsoft Excel ???????? Microsoft Visual Basic .NET ?? Microsoft Visual C# .NET Microsoft Visual C++ ? ?? ???? ????? ????? ??????? ??? ??????? ?????? ?????:
???: 0x80028018 (-2147647512)
?????: ????? ???? ?? ????? ??? ??? ????

?????

????? ??? ????? ?? ??????? ????? Excel ????? ?????? ???????:
  • ????? ??????? ???? LCID (???? ????????? ???????).
  • ???? ?????? ????? ????? ?????????? ?? Excel. ??? ???? ?? ????? ????????? ????????? ????????? ??? ??? ??????????.
??? ??? ????????? ?????? ?????? ????? ????? ?????????? ?? Excel ?????? ????????? ??????? ???????? ?????? ??? ??? ??????????? ?????? Excel ?????? ???? ???? ????? ???? ???????. ??? ?? ??? ?????? ??? ???? ????? ????? ????? ??????.

???? ??????

??????? ?????? ??? ??? ??????? ????? ??????? ???? ????? ???????:
  • ????? "???? ????? ???????? ???????? ??????" ?????? Office ????.
  • ????? Excel ??????? ?? ??????? ?????? ??????? InvokeMember ???? ????? ????? CultureInfo ??? ????????. ??? ???? ??????? ???? ???????? ???????? ??????? ??? ???? ??????? ??????? Add ?? "en - US" ?? CultureInfo ?????? ??????:
    Dim oApp As New Excel.Application()
    oApp.Visible = True
    oApp.UserControl = True
    Dim oBooks As Object = oApp.Workbooks
    Dim ci As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("en-US")
    oBooks.GetType().InvokeMember("Add", Reflection.BindingFlags.InvokeMethod, Nothing, oBooks, Nothing, ci)
    
  • ?? ????? CultureInfo ??? ??? ??????? ??????? Excel. ??? ???? ??????:
    Dim oApp As New Excel.Application()
    oApp.Visible = True
    oApp.UserControl = True
    Dim oldCI As System.Globalization.CultureInfo = _
        System.Threading.Thread.CurrentThread.CurrentCulture
    System.Threading.Thread.CurrentThread.CurrentCulture = _
        New System.Globalization.CultureInfo("en-US")
    oApp.Workbooks.Add()
    System.Threading.Thread.CurrentThread.CurrentCulture = oldCI
  • ????? ???? 1033 ??? Office\Office11 Microsoft. ?? ??? excel.exe ??? ?????? 1033 ? ?????? xllex.dll.

    ????? ?? ?????????? ???? ??? ???????? ??????:
    http://blogs.msdn.com/eric_carter/archive/2005/06/15/429515.aspx

??? ??????? ??? ??? ?????? ????? ??????? ??? ?? ????? ????????? ????????? ????? ????? ??????? ?? Office ? ??? ?? ???? ??? ????? ?? ???? Excel ????? ???? Excel ?????? ???????? ????? ????? ?????. ?????? ??? ???? ?? ???????? ??? ????? globalized ???? Excel ?? Visual Studio .NET ?????? ?????? ???????? ??????? ?? MSDN:

????? ???? Office ????????? ?? ???????/??????? ??????
http://msdn2.microsoft.com/en-us/library/aa168494(office.11).aspx
??????? ?????? ????? ???? ?? ??????? ?????? Microsoft Visual Studio ????? ???? Microsoft Office
http://msdn2.microsoft.com/en-us/library/aa192494(office.11).aspx

?????

???? Microsoft ?? ??? ??? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

??????? ????

????? ????? ????? ??????

  1. ???? ?? ????? ????????? ??????? ????????? ??? ??? ??? ??????????.

    ????? ??????? Windows 2000:
    1. ?? "???? ???? Windows?" ???? ????? ??????? ??? ???????? ?????????.
    2. ?? ??????? ???? ??? ?????? ?? ???? ??? ?????.
    ???? ??????? Windows XP ?? Windows Server 2003:
    1. ?? "???? ??????" ? ???? ???????? ????????? ??????? ?????.
    2. ??? ????? ??????? ?????? ??????? ??? ??? ?? ???? ??? ?????.
  2. ??? ????? Microsoft Visual Studio .NET.
  3. ?? ??????? ???? ??? ??? ???? ?? ???? ??? ???????. ?? ???? ?????? ????? ???? ??? ????? Project, ???? ??? ?????? Visual Basic. ??? ????? ???? ??? ????? Windows ?? ???? ??? ?????. ?????????? ??? ????? Form1.
  4. ?? ??????? ???? ???? ??? ???? ??????? ?? ?? ?????? ?? ??? Form1.
  5. ???? ???? ????????? ???????? ??????? ???? ????? ??????? ??? Button1.
  6. ?? ???? ????????? ???????? ??????? ???????? ???????? ???????
    Private Sub Button1_Click(ByVal sender As System.Object, _
                              ByVal e As System.EventArgs) _
                              Handles Button1.Click
    End Sub
    					
    ??:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim oApp As Object
        Dim oDoc As Object
        oApp = CreateObject("Excel.Application")
        oApp.Visible = True
        oDoc = oApp.Workbooks.Add
        oDoc.Close()
        oApp.Quit()
        oDoc = Nothing
        oApp = Nothing
    End Sub
    					
  7. ?? ?????? ????? ?????? ??? ????? ?????? ??????? ????????? ???????? Form1:
    Option Strict Off
  8. ???? F5 ?????? ???????? ???????.
  9. ?????? ????? ???? ??? Button1. ??? ????? ?? ????? ???? ????:
    oDoc = oApp.Workbooks.Add
    					

?????

?????? ??? ???? ?? ????????? ??? Office ??????? ?????? ???? Microsoft Office ????? ??? ???????:
http://support.microsoft.com/ofd
???????? ??? ???? ???? ?????? "????? ??????? ?? Microsoft" ???????:
301982??? ???? Microsoft Excel ????? ?? Visual Basic .NET
302084??? ???? Microsoft Excel ????? ?? Microsoft Visual C# .NET

???????

???? ???????: 320369 - ????? ??? ??????: 24/?? ?????/1430 - ??????: 9.0
????? ???
  • Microsoft Office Excel 2007
  • Microsoft Office Excel 2003
  • Microsoft Excel 2002 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
  • Microsoft Visual C# .NET 2003 Standard Edition
  • Microsoft Visual C# 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual C++ 6.1
  • Microsoft Visual J# .NET 2003 Standard Edition
  • Microsoft Visual Studio Tools for the Microsoft Office System version 2003
????? ??????: 
kbmt kbvs2002sp1sweep kbautomation kbbug kbpending KB320369 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????320369

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com