LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write in a formfield in word, with toolkit report generation

Solved!
Go to solution

Hello  all !

 

I am trying to write values in a word table containing formfields. My Vi is working fine ecept of one fact :

 

- The formfields are erased when a value is written.

 

Is there any method in the toolkit "report generation" that allows to write in formfields ?

 

I made an example VI to show you my problem

 

Thanks in advance for your answers

 

Thibaud

 

 

Download All
0 Kudos
Message 1 of 5
(3,371 Views)
Solution
Accepted by topic author ThibaudP

ThibaudP a écrit :

Hello  all !

 

I am trying to write values in a word table containing formfields. My Vi is working fine ecept of one fact :

 

- The formfields are erased when a value is written.

 

Is there any method in the toolkit "report generation" that allows to write in formfields ?

 

I made an example VI to show you my problem

 

Thanks in advance for your answers

 

Thibaud

 

 


First, what you have are not formfields but ContentControl objects. When you use Word Edit Cell.vi you are replacing the actual content of the cell (the ContentControl object) by plain text. What you need to do is to edit the text property value of the range of the ContentControl object that is contained in the cell.

 

There is no Report Generation Toolkit vi that can do it. What you can do is to get the table activeX reference from the Word Get ActiveX References.vi and do as in the following code snippet.

 

Ben64

 

Word Edit ContentControl.png

Message 2 of 5
(3,331 Views)

How do I find that object in the pellet, right behind the ActiveX Word object? 

0 Kudos
Message 3 of 5
(999 Views)

Those are Invoke nodes (with the arrow) and property nodes (with the wrench). You can find these nodes in the Application Control palette.

0 Kudos
Message 4 of 5
(984 Views)

Thanks found it. I am new to labview. What exactly is the difference between property and invoke node? To me they look like very similar functions, and I am not too sure what distinguishes them. 

0 Kudos
Message 5 of 5
(975 Views)