LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Word_TableOfContentsUpdate in CVI7.0

Dear Sir:
I can't update the table of Content in word2000 report,and
I got error code returned as below, why ? can anyone show me
how to do it , thanks first .the following is what I got in CVI7.0 :
ErrStatus = Word_TableOfContentsUpdate (TOCHandle, NULL);
I got ErrStatus=-2147467262 (don't support the interface ???) , but everything works fine except this??
0 Kudos
Message 1 of 2
(2,942 Views)
Hi,

I'm not very familiar with tht Word ActiveX interface. However for the type of error it is possible that the function is not supported by TOC object. Sometimes Word can have exported function that are not totally COM compliant that they call internaly; it is possible that when you try to run it you get an extraneous error.

You may also want to check for any precondition required by the function. Sometimes you have to initialize the object in a certain way before calling certain functions. In this case you may need to initialize certain parts of the TOC to be able to update it.

I knoe this is not much, let me know how this goes.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(2,942 Views)