java - How do we get to know whether a macro is present or not in a word document? -


using java how find whether macro present or not in microsoft word document. tried using switch command winword.exe there no switch can find it.

use library can parse word documents. apache poi choice long documents aren't big.

the library allows load document. afterwards, can examine various parts.

bug 52949 has attachment sample code how extract macro code. should started.

you you're using new xml format .docx / ooxml, word file in fact zip archive can unpack using standard java library. inside, find lot of xml files. macros should there well.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -