How to create a email link in POI Word Format

前端 未结 4 1801
迷失自我
迷失自我 2021-01-14 16:12

How can I create an external link or an email link in a XWPFDocument? There is a description for Excel (HSSF XSSF), but i haven\'t found anything similar for Word (HWPF XWPF

4条回答
  •  庸人自扰
    2021-01-14 16:57

    At the moment, XWPF has support for reading and manipulating hyperlinks, see XWPFHyperLinkRun and XWPFHyperlink for details.

    There's not currently any user facing code to handle creating hyperlinks in XWPF, but all the components are there (handling of the low level hyperlink objects, ability to add hyperlinks into the relations etc). A patch to tie this together to provide the missing functionality would be very much appreciated by all!

提交回复
热议问题