LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read fieldcode entries in a word document

Hello,

is there a way how to read fieldcode entries from a word document?

 

I have a word document with defined field names and field properties. I would like to create a VI to read those entries.

Any Idea?

Thank you.

 

 

0 Kudos
Message 1 of 2
(871 Views)

Hi REDV,

 


@REDV12 wrote:

is there a way how to read fieldcode entries from a word document?

I have a word document with defined field names and field properties. I would like to create a VI to read those entries.


Try to get your data using VBA for Office. Record your actions using the macro recorder.

Then analyze the recorded commands to learn which methods/properties you need to call using the ActiveX interface for Office.

 

Then read all those threads about "ActiveX interface to MSOffice tools" and implement your own VIs to access the needed properties/methods!

 

Other option: When you use the XML variant of Office files, like docx, then you can umcompress the file (it's just a ZIP file) and try to parse its content for the needed data…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(834 Views)