如何在POI XWPF中为页脚函数创建枚举参数 [英] how to create enum parameter for footer function in POI XWPF

查看:62
本文介绍了如何在POI XWPF中为页脚函数创建枚举参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我想为word文档创建一个页脚,同时我得到了create footer()方法,但是第一个参数是枚举类型.我将如何为此函数设置枚举参数.有人请帮助我.....

Dear All,
I want to create a footer for word document meanwhile i got the create footer() method but first parameter is enum type .How i will set enum parameter for this function. Anyone pls help me.....

XWPFFooter footer = policy.createFooter(Enum type, XWPFParagraph[] pars)


问候
Andavar.p


Regards
Andavar.p

推荐答案

您从未尝试阅读过文档,对吗?

http://poi.apache.org/apidocs/org/apache/poi/xwpf/model/XWPFHeaderFooterPolicy.html [ ^ ]

此处使用的枚举被描述为第一件事.
you have never tried to read the documentation, did you?

http://poi.apache.org/apidocs/org/apache/poi/xwpf/model/XWPFHeaderFooterPolicy.html[^]

The enum used here is described right as first thing.


检查 ^ ]作为可能的选项.
Check the documentation[^] for the possible options.


这篇关于如何在POI XWPF中为页脚函数创建枚举参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆