10-05-2021 08:39 AM
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.
10-06-2021 10:25 AM
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…