能不能再帮我看看这几个问题,急用,感激不尽LINE149           InsertPicutreButton.FaceId = 6578
LINE152
    InsertPictureButton.Click+=new_CommandBarButtonEvents_ClickEventHandler(InsertPictureButton_Click);
LINE178
  object omissing=System.Reflection.Missing.Value;
                    wordApp ActiveWindow.Selection.Inlineshapes.AddPictures(
                        ofd .FileName,ref omissing ,ref omissing,ref omissing);e:\My project\lj\AK47\AK47\Connect.cs(149,13): 错误 CS0103: 当前上下文中不存在名称“InsertPicutreButton”
e:\My project\lj\AK47\AK47\Connect.cs(152,40): 错误 CS0103: 当前上下文中不存在名称“new_CommandBarButtonEvents_ClickEventHandler”
e:\My project\lj\AK47\AK47\Connect.cs(178,41): 错误 CS1002: 应输入 ;
e:\My project\lj\AK47\AK47\Connect.cs(178,41): 错误 CS1525: 无效的表达式项“.”
e:\My project\lj\AK47\AK47\Connect.cs(178,42): 错误 CS1002: 应输入 ;

解决方案 »

  1.   

    上面问题已经解决4个,^_^
    不过那个
    LINE149           InsertPicutreButton.FaceId = 6578
    是怎么回事呢?
    e:\My project\lj\AK47\AK47\Connect.cs(149,13): 错误 CS0103: 当前上下文中不存在名称“InsertPicutreButton”是不是要加什么using 呢,请大家指点,谢谢!!!
      

  2.   

    CommandBarButton InsertPictureButton;
    我想问下,是不是这个语句要加在某处呢?是加在整个类里么?
      

  3.   

    CommandBarButton InsertPictureButton;
    ----------------------------
    可以加在类域里,也可以加在149行这个函数的最前面。