SOAOfficeX.WordResponse SOAWord = new SOAOfficeX.WordResponse();这句正常  SOACtrl.WebOpen("doc/template.doc", SOAOfficeX.soaWorkMode.docReadOnly, "aaa", "Word.Document");  不存在类型或命名空间名称soaWorkMode
  SOAServer.Server soaobj = new SOAServer.Server();这句同样有问题  vs.net2008平台,已经安装SOAOffice的setup.exe,也把文件夹bin和soaservice拷贝到根目录下。

解决方案 »

  1.   

    自己查查帮助,看看是不是哪个dll没有添加进来
      

  2.   

     不存在类型或命名空间名称soaWorkMode
    通常就是缺少程序集的引用
    重新生成下
      

  3.   

    检查相关引用,看看相关帮助
    SOAOfficeX.WordResponse SOAWord = new SOAOfficeX.WordResponse();
    SOAWord.OpenDataRegion("Title").Value = "";
    SOAOfficeX.SOAOfficeCtrl SOACtrl = new SOAOfficeX.SOAOfficeCtrl();
    SOACtrl.MainStyle = SOAOfficeX.soaMainStyle.VistaBlue;
      

  4.   

    项目里没有添加引用 add reference >>>browse>>>添加DLL
      

  5.   

    ????   SOAOfficeX.SOAOfficeCtrl SOACtrl = new SOAOfficeX.SOAOfficeCtrl();