Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OLE Error in PowerBuilder 7.0 with Word XP

54 views
Skip to first unread message

Vidya

unread,
Jul 23, 2003, 4:34:23 PM7/23/03
to
I am getting an error when I run the application with Powerbuilder 6.5/7.0
and Word XP.

"Error calling external object function at line < > in function < > of
object < >"

This application was working fine for Powerbuilder 6.5 and Word 2000. The
script I am using is as follows:

iole_word_97 = Create OLEObject

li_return = iole_word_97.ConnectToNewObject("Word.Application.10")

Yield()

if (li_return <> 0) then
return FAILURE
end if


iole_word_97.Documents.open("C:\Prop.doc")

This.of_set_progress(10, "Activating Word...")

iole_word_97.Visible = TRUE

iole_word_97.ActiveDocument.SetWordAppState('MIN')

I get the error on the Last line.

Can somebody please help?

Chris Keating (iAnywhere Solutions)

unread,
Jul 23, 2003, 4:20:22 PM7/23/03
to
SetWordAppState is not a documented method in the Document object.

BTW
You have left out the most important portions of the error message.... When
posting error messages, please post the entire error message verbatim

--

Chris Keating
Sybase Adaptive Server Anywhere Professional Version 8

Sybase TechWave User Training and Solutions conference -- August 4 - 8, 2003
in Orlando, FL. -- A great place for education and in-depth discussions
on all our technology, future trends in the market, not to mention getting
time with the engineers who create the products! For more information,
visit http://www.ianywhere.com/techwave2003

iAnywhere Solutions http://www.iAnywhere.com

** Please only post to the newsgroup

** Whitepapers can be found at http://www.iAnywhere.com/developer
** EBFs can be found at http://downloads.sybase.com/swx/sdmain.stm
** Use CaseXpress to report bugs http://casexpress.sybase.com

<Vidya> wrote in message
news:79EF310FA0873BDB007102B385256D6C.007102E485256D6C@webforums...

0 new messages