This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Apache POI XWPF Tab Stop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Apache POI XWPF Tab Stop" Watch "Apache POI XWPF Tab Stop" New topic

Apache POI XWPF Tab Stop

Eric Sanders

Joined: Nov 24, 2013
Posts: 1
I have a word document that has lines like the following A name (aligned left) and a price (aligned all the way to the right) both on the same line. I believe this is done by a tab-stop in a word document. Here is an example, see the first line. enter image description here.

Is it possible for me to print out into a word document, a line like the first one? I checked around the documentation for apache POI but didn't see anything that allowed you to set a tab stop. However, I wasn't sure if there is another way to get the first line to look like that.

One other way I tried, was to have a table with 1 row and 2 columns. Column 1 was left aligned and column 2 was right aligned. However, I couldn't figure out how to get the table to stretch the length of the page and not resize to the contents. I also couldn't figure out how to make the borders invisible in the api.

I agree. Here's the link:
subject: Apache POI XWPF Tab Stop
It's not a secret anymore!