I'm using the apache poi library (poi-3.8-20120326.jar)
How can I add the filename in the footer of an xls (hssf) document?
My approach is the following:
final static public String FILE_NAME = "&[File]";
public static void insertFilename(Sheet sheet) {
sheet.getFooter().setLeft(FILE_NAME);
}
The Problem is, the Microsoft Excel 2003 displays
File]
If I open the Footer-editor, click in the field, change nothing, and save--it works. Editor shows it as
&[File]
Is there a workaround or a dirty trick to avoid this?
Thank you