xwpf Questions

5

How to make this table to auto-fit to document page width, when the column size increases, using apache-poi and aligning that table to center. This code generates a word Document extracting data f...
Clementius asked 1/3, 2013 at 2:23

11

Solved

I just found Apache POI library very useful for editing Word files using Java. Specifically, I want to edit a DOCX file using Apache POI's XWPF classes. I found no proper method / documentation fol...
Wily asked 8/3, 2014 at 11:46

0

We use Apache POI to do manipulations of Microsoft Word documents. So far we're able to access all the required paragraphs (including headers, footers, tables) in a document using the following API...
Idiocrasy asked 31/8, 2021 at 15:40

5

I'm generating a docx file with apache-poi. In the wordfile, I add tables, whose columns have a width I would like to see fixed. Currently, I use the technique described here: http://apache-poi.10...
Marchland asked 18/11, 2013 at 10:51

2

Solved

I use Apache POI XWPF to create and handle MS Word documents. But I didn't find in the documentation how to change the page orientation. Apparently this way should make it: XWPFDocument doc = new...
Salvation asked 25/11, 2013 at 9:50

4

I'm tying to replace tokens in the header of docx file.I have handled the token replacement in paragraphs and tables but its not picking the header data. Im using apache poi 3.8 and coding in java ...
Timbale asked 16/10, 2013 at 0:48

1

Solved

I tried searching too much for this but did not get the desired result. I am using Apache POI to copy specific ata from an Excel sheet to a table in MS Word 2010 file using XWPF. I have completed t...
Intercessory asked 28/9, 2017 at 12:7

2

I want to set page-margins for word document created using apache poi-3.9. I found it can be done using CTPageMar but CTPageMar is not being resolved. I am using apache poi-3.9 I tried this CTS...
Truncation asked 22/4, 2015 at 8:2

3

Creating a table in poi was quite easy but it has very limited tutorials and I cannot find one that can create a simple merged cell in a table in generating a docx file.
Dit asked 13/4, 2013 at 6:18

1

Solved

Current output: Needed output: above are the snapshots of the .docx and below is the code sample code, I want to change the color of a after it is replaced by @. r.setColor("DC143C") doesn't wo...
Queasy asked 29/10, 2016 at 11:13

1

Solved

I want to create a docx file by using Apache POI. I want to set background colour of a run (i.e. a word or some parts of a paragraph). How can I do this? Is in possible via Apache POI or not. T...
Jodyjoe asked 15/2, 2016 at 21:41

2

I have a simple requirement to extract all the Images and Diagrams drawn in MS Word file. I am able to extract only images but not group of shapes(like Use Case Diagram or Activity Diagram). I want...
Fulgent asked 30/6, 2014 at 17:11

4

Solved

I'm creating a docx generator with POI and would like to use predefined formats. Word includes several formats like Title, Heading 1..10 etc. These formats are predefined in every DOCX you create ...
Haematosis asked 15/4, 2010 at 8:43

1

Solved

I'm trying to understand some parts of Apache POI. For instance, i;m trying to get text (or table, etc.) from an existing docx file. For example there is a method getParagraph(..CTP p) in XWPFDocum...
Violence asked 29/8, 2014 at 19:55

2

Solved

I am writing values into a word template using apache poi 3.8. I replace specific strings in a word file (keys) with required values, e.g. word document has a paragraph containing key %Entry1%, and...
Wayless asked 12/2, 2013 at 10:44

1

Solved

I have a word template that has multiple similar tables and some paragraphs associated to those tables placed just before them. Depending on the amount of data, I populate some tables and others ar...
Claud asked 23/2, 2014 at 13:28

0

Let's review the relationship between "docx" and "pictures": As I understand it, *.docx stores original pictures (pictures at the moment when you copy/paste them into Word). And every time when yo...
Hundredweight asked 24/3, 2014 at 19:26
1

© 2022 - 2024 — McMap. All rights reserved.