近日用ireport做報表,需要導(dǎo)出excel。默認(rèn)情況下,ireport會自動以jasper的文件名作為導(dǎo)出的excel的sheet的名字,而sheet的名字最多支持31個字母;所以,我想問問大家:在ireport中是如何設(shè)置指定要導(dǎo)出的excel文件的sheet name呢?
請問:如何使用iReport設(shè)置excel的sheet name呢?
Comments
# re: 請問:如何使用iReport設(shè)置excel的sheet name呢?
沐浴勁風(fēng)
這個問題解決了嗎?我也遇到相同的問題了
Posted @ 2012-11-23 11:06 回復(fù) 更多評論
# re: 請問:如何使用iReport設(shè)置excel的sheet name呢?
池
exporter.setParameter(JRXlsExporterParameter.SHEET_NAMES, sheetNames); --sheetNames是String[]類型
Posted @ 2014-07-02 16:14 回復(fù) 更多評論