LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

format tables in word documents

Solved!
Go to solution

Hello,

 

What I want to do is to:

 

1. insert a table in a word document 

2. set the width of the 1st column to 2 cm, the width of the 2nd to 6 cm and the width of the 3rd to 3 cm.

3. insert  values into specific cells of the table, not in all cells

4. format the text in the cells

5. insert a value in the first cell of the table. There is an empty cell on the top left side if I use headers of the rows and columns.

 I  

I was successful with 1. I used the microsoft report generation tool, but I  could only set one width for all colums.

 

 All the other problems are unsolved.

 

I also did not succeeded in creating the Microsoft parameters.

I found no way to create it.

 

Hope somebody knows to solve these problems

 

Thanks

 

Rusja 

 

 

 

0 Kudos
Message 1 of 3
(3,089 Views)
Solution
Accepted by topic author rusja

Hi rusja,

      The attached VI might work to update a specific cell in a Word document - once you've opened the document and obtained the table's reference.  To do this you will be using Word's Active X interface, so you'll need Word installed where this application runs.

 

There are lots of Active X posts on this forum (especially about closing references!!!) and many re: Word, there are also a couple of links in the attached VI.

 

Note: Word exposes its functionality to other applications through Active X, and any language with Active X tools (like LabVIEW) can use Word.  This means that there's a huge amount of ActiveX/Word help/experience/examples on the web, that will apply to your use of Word via LabVIEW.

 

Have Fun!

Cheers.

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 3
(3,078 Views)

Thanks,

 

I have downloaded a lot of files and tutorials. I will work them out.

 

 Rusja

0 Kudos
Message 3 of 3
(3,040 Views)