Skip to Content

Office Integration

Hi All,

I'm using WAS 6.40 SP6 (SS3) and trying to use the office control for desktop integration. The documentation in NDS does not match the interface of the OfficeControl object. Does anyone have the correct documentation? Specifically, my OfficeControl object does not have methods ShowDocument, SaveDocument, CloseDocument as shown in the documentation but only a callMethod method with the signature (IWDController,String,String,String,ParamInfo[]). I don't need real documentation, only something suggesting what goes in these parameters. The 3 strings are particularily unilluminating.

Thanks,

--Greg

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2004 at 04:08 PM

    Hi Greg,

    please use the WDOfficeControlMethods API instead. The methods

    show/close/saveDocument(IWDController, String controlId)

    have been moved to this class.

    API snippet:

      /**
       * This method will be called by the Application programmer to Open the document from the back end.
       */
      public static void showDocument(IWDController controller, String controlId) 
      { 
        instance.callMethod(controller, controlId, "LoadDocument");
      }     
    
      /**
       * This method will be called by the Application programmer to close the document from the back end. 
       */
      public static void closeDocument(IWDController controller, String controlId) 
      {     
        instance.callMethod(controller, controlId, "CloseDocument");
          
      }  
    
      /**
       * This method will be called by the Application programmer to Save the document from the back end. 
       */
      public static void saveDocument(IWDController controller, String controlId) 
      {  
        instance.callMethod(controller, controlId, "SaveDocument");
      }

    Best regards,

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • Hi All,

      I should also have mentioned that on the Office Control UI element, I have chosen it to be ms_excel, but it still shows up as a MS word document. (Needless to say, the data in the file does not show up correctly.)

      Thanks,

      --Greg

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2004 at 11:03 AM

    Generally, a Web Dynpro application should only use the API classes "WD" and the API interfaces "IWD".

    Using implementation classes like OfficeControl is not bad style, it is simply wrong 😉

    The KW doc is obviously wrong here, please consult the Javadoc instead.

    Armin

    Add comment
    10|10000 characters needed characters exceeded