none
application.Selection.find.Execute failed in word 2013 RRS feed

  • Question

  • Hi all

    I have an application in Powerbuilder 11.5 that searches in word docs

    Worked fine until I installed word 2013

    Now I got an "error calling external function" in 

    application.Selection.find.Execute(...)

    the code is :

    o1 = CREATE oleobject

    o1.ConnectToNewObject("word.application")

    o1.documents.open(ls_doc_path , False , blnOpenReadOnly )   // this function works !!!!

    o1.Application.Visible =false

    if o1.application.Selection.find.Execute(as_phrase) = true then

    here is the error message

    thanks a lot

    Thursday, March 7, 2013 3:13 PM

Answers

  • Would you please try the following code:

    if o1.application.Selection.find.Execute(ref as_phrase) = true then

    Also, would you please try to update the PowerBuilder?

    You can also try the following site:

    PowerBuilder

    http://www.sybase.com/products/modelingdevelopment/powerbuilder

    Good day.

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, March 8, 2013 8:13 AM
    Moderator