New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support DOCM file type #1250
Comments
It seems there is NO option to specify the 'ContentType' when to create the instance of XWPFDocument. /**
and using the 'MACRO_DOCUMENT' public class XWPFRelation : POIXMLRelation
|
PR is welcomed |
NPOI Version Used
Version 2.6.2
File Type
Use Case
We use the XWPFDocument , and want to generate *.docm document format with some VBA macros enabled, it also uses hyperlinks and table of contents etc.
The current official supported file types only include DOCX and XLSM, but without DOCM. Could we add the support for DOCM file type, please?
Description
One of the uses of the VBA macro is to avoid the
EnforceUpdateFields()
to ask two questions when opening the docx file, and the user directly saves it doesn't work since Word considers the updated fields are not a real change. So the workaround using a macro is like this:Notes:
My test code with a hyperlink:
MS Word cannot open the saved
hyperlink-docm.docm
.The text was updated successfully, but these errors were encountered: