VBScript Documents.Open throwing 424 error

前端 未结 1 1850
有刺的猬
有刺的猬 2021-01-15 06:31

So I have a vbs script:

Function test2open( sSourceFile, sPDFFile )
  Dim wApp \' As Word.Application
  Dim wDoc \' As Word.Document

  logStream.writeline \         


        
相关标签:
1条回答
  • 2021-01-15 07:17

    I believe I've found the answer to my question. The problem is that MS is restricting the use of automation of office products. Server 2008 64bit and office 2007 just don't work well. The solution that worked for me was found at:

    http://social.msdn.microsoft.com/Forums/en-US/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91?prof=required

    In case that thread disappears:

    This solution is ...
    
    ・Windows 2008 Server x64
    
      Please make this folder.
    
      C:\Windows\SysWOW64\config\systemprofile\Desktop
    
    ・Windows 2008 Server x86
    
      Please make this folder.
    
      C:\Windows\System32\config\systemprofile\Desktop
    
    0 讨论(0)
提交回复
热议问题