LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I insert a table of contents to a word document using CVI

 
0 Kudos
Message 1 of 5
(4,078 Views)

Hi himi,

You will want to use the Microsoft Word 9.0 Object Library to interface with Microsoft Word.  You should then be able to use the ActiveX calls provided to add the table of contents.  The specifics on how to do this should be found in Microsoft's Documentation.

Refer to the Microsoft document entitled How to find and use Office object model documentation. In your case, you will be looking at the Vbawrd9.chm help file which I believe will be located in the C:\Program Files\Microsoft Office\OFFICE\1033\ directory.

Also refer to the Unable to Load Microsoft Excel/Word Help in LabWindows/CVI KnowledgeBase.

0 Kudos
Message 2 of 5
(4,050 Views)
when i open the word2000.fp library in cvi i find commands like: Word_TablesOfContentsAdd() to edit any word document. However the "HELP" for these commands are not available in CVI or in the Microsoft Office . Can you help me in finding the help for all such types of commands.
0 Kudos
Message 3 of 5
(4,040 Views)
Hello himi,

The functions are documented in the Microsoft Office object documentation.  This is located in numerous places depending on the verision of Office that you are using.  There is a document titled How to find and use Office object model documentation that I mentioned in my previous post that tells you exactly where this documentation is located.  This guide is available at http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q222101&.

In this document, you will want to look for the Version 2000 (or 9.0) documentataion for Word.  In this case, the file that you will want to reference is named Vbawrd9.chm.  You can open this file and it should have the documentation provided by microsoft for the functions provided by word2000.fp in LabWindows/CVI.
0 Kudos
Message 4 of 5
(4,016 Views)

Hello your help is realy disappointing, obviously word2000.fp is written only for people which are good at VB. I my case I use CVI to avoid VB.

 

I only want to open a "file.dot" and add some AutoText. Can you give me a bit of assitance.

 

 

best regards

johann 

0 Kudos
Message 5 of 5
(3,354 Views)