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

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

?? ????? ??

?????

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

????

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

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

?? ?????? ?? ?????? ?????? ?? ???, ?? ????? ??? ?? ???? ?? ???? ?? ???? ???:
  • Office ?? ???? ??????? ?? ??? ??????? ?????????? ??????? ??? ??????? ????.
  • Excel ?????? ?? ??? ?? InvokeMember ?? ????? ???? ??? ????? ???? ?? ??? ?? ??? CultureInfo ?? ????????? ?? ????. ?????? ?? ???, ????? ??? ?????? ?? ?? ?? Workbooks ???????? ?? 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)
    
  • ??, Excel ?????? ?? ??? ???? ?? ???? CultureInfo ?? ??? ????. ?????? ?? ???:
    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

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

?? ?? ???? ?????/????????? ??? ????? ?? ??? Office ?????? ?????
http://msdn2.microsoft.com/en-us/library/aa168494(office.11).aspx
Microsoft Office ?????? ?? ??? Microsoft Visual Studio ??????? ?? ?????? ???? ?? ???????? ?? ??? ?????????? ?? ?????????? ??????
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. ????? ???? ??, ??? ?? ????? ????, ?? ???? ??? ????????? ????? ????. ??? ????????? ????? ????? ???, ????????? ?????? ?? ??????? 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
    					
    with:
    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 Visual Basic .NET ?? Microsoft Excel ?? ??????? ???? ???? (?? ???? ?? ?????????? ?? ????????? ?? ???? ?? ?? ????? ?? ??????: ???????? ??? ?? ???? ???)
302084 Microsoft Visual C# .NET ?? Microsoft Excel ?? ??????? ???? ???? (?? ???? ?? ?????????? ?? ????????? ?? ???? ?? ?? ????? ?? ??????: ???????? ??? ?? ???? ???)

???

???? ID: 320369 - ????? ???????: 31 ??????? 2007 - ??????: 8.3
???? ???? ???? ??:
  • 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
??????: 
kbvs2002sp1sweep kbautomation kbbug kbpending KB320369

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

 

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