Quantcast
Channel: Java Programming Forum - Learn Java Programming - Apache POI
Browsing all 120 articles
Browse latest View live

replace place holder in header and footer

Hi all, I am using apache poi latest . we had a template file abc.docx. it has some header image ,and need some data to dispaly in header. example Job Id :#jobid Student name:#sname we need to replace...

View Article


replaceText of usermodel.Range class works on Windows but not on MAC

My project takes a Word template and replaces placeholders with values from a Lotus Notes document. It is currently using LotusScript (VBA) to do this in Windows which means it is using OLE. OLE does...

View Article


Import Excel: How to get a blank, when the result of a formula is blank?

Hello, I am trying to read an excel file via poi. Everything works fine except one thing. In my imported file there are two sheets. Some cells on the first page refers via a formular to cells on sheet...

View Article

How to create multiple AutoFilter at different rows using Apache POI

Hii, I want to create AutoFilters at multiple places in an excel sheet using Apache POI. (e.g. at row 2 & at row 8). Code: hssfSheet.setAutoFilter(new CellRangeAddress(2, 4, 6, 3));...

View Article

How to create charts in Word using POI in Java

Hi, Can some one please help me out in creating charts in Word using POI in java Regards, Chennu

View Article


Read a spreadsheet to Array, in Excel

I am new to Apache POI and JAVA. Can someone help me by giving me an example of how I would read an Excel sheet and store it as a multi-dimensional array? Thanks!

View Article

Apache poi event api issues

Hi i am developing the app conversion of xlsx/xls to csv using apache poi event api.I am facing some issue please clarify . For accounting column While reading from xlsx : format index is = 44 format...

View Article

typeface font family precedence

I'm hitting some font/tofu problems using the POI library to render a PNG image from XSLFSlide, and it looks to be a latin/ea/cs precedence issue (or lack thereof). Specifically, it appears as though...

View Article


ROW Duplication

Background: 1500 columns ( calendar of ca. 3 years = ~1500 days) 1000 rows in Total ~1.5 Mio cells ROW = 0 skip ROW = 1 I am creating for row=1, 1500 columns, i.e. 1500 cells Each cell is empty. I am...

View Article


typeface font family precedence

I'm hitting some font/tofu problems using the POI library to render a PNG image from XSLFSlide, and it looks to be a latin/ea/cs precedence issue (or lack thereof). Specifically, it appears as though...

View Article

ROW Duplication

Background: 1500 columns ( calendar of ca. 3 years = ~1500 days) 1000 rows in Total ~1.5 Mio cells ROW = 0 skip ROW = 1 I am creating for row=1, 1500 columns, i.e. 1500 cells Each cell is empty. I am...

View Article

CellRange - color

Hi, I can set a style for 1 cell, such Code: XSSFCell cell = sheet.getRow(0).createCell(0); cell0.setCellStyle(my_defined_style); BUT, how do I do this for certain cellrange, such start_row=1 end_row=1...

View Article

conditional formatting does not work on copied cells

Hi everyone! I am copying cells (value and cellstyle) from one workbook to another, using the code below. Now i have two xlsx files, where src.xlsx is the source - where the values are copied from -...

View Article


How to identify date cell type using XMLStreamReader (poi's XSSFReader api)

I have a simple excel sheet(.xlsx) with a number of rows. For one of cell the data type is "Date" and I can see the date in correct format in Excel. But when I read excel using XMLStreamReader(poi's...

View Article

Page break in .docx

Hello! I parse the word file and want to identify page break. I try to use method "XWPFParagraph.isPageBreak()", but it always returns false. Code: sample = new XWPFDocument(new...

View Article


Creating Numbered Headings to a Paragraph in Word Document using APACHE POI

Hello Everyone , In writing to a word document using Apache poi , for the places where dynamically a paragraph has to get replicated based on some "count" , the headings for those paragraphs has to be...

View Article

How can I do to justify a text in a paragraph?

Good day. I'm using Apache POI 3.15 version in order to create a Microsoft Word document in Java. I cannot found a way in order to justify a text in a paragraph. In XWPFParagraph class I found only...

View Article


Reading Data from *.msg Files - Problem by receiving Email Address of "From"

Hello i just wrote a small java programm which collects all data from a *.msg (Stored Email File) and writes it to a Excel sheet. Iam using Apache - Poi (might be version 3.15) My problem right now is...

View Article

Apache POI - Insert HTML content into word document

Is there any way to paste / insert HTML content into word document by using Apache POI API.? Thanks.

View Article

Read range name from Excel

Hi Guys, I am total newbe but i have to know how to read named range in apache poi. I am trying only to read value for named range. I am using code like: Code:         public static void main(String[]...

View Article
Browsing all 120 articles
Browse latest View live