Overclock.net banner
1 - 2 of 2 Posts

· Registered
Joined
·
5,715 Posts
Discussion Starter · #1 ·
Has anyone here ever used the Apache POI for Java to read MS Office documents? I'm currently working on a project to read in multiple word files and compile them together. General program works, but can't get the formatting right. SetBold() seems inconsistent, I tell some lines to be bolded and some others to not be using the insertAfter("text", properties); function where properties is just a new CustomProperties that has setBold set to true. The output just has the first say 30 lines of text be bolded and the rest set to default font and fontsize. Also, I can't seem to find any way to format the document such that it's in the two column format.

Anyone familiar with this API?

Thanks.

Or if you know some other way to read/write .doc/.docx files in java that'd be great too!

biggrin.gif


Also the outputted .doc defaults to draft view for some reason instead of print preview.
 

· Registered
Joined
·
5,715 Posts
Discussion Starter · #2 ·
No one?

I got the output to work, insertBefore doesn't seem to agree with the API. Still can't get bolding and stuff. Also still don't have any idea how to do two collumn, I can only think of perhaps inputting the text into a two collumn table that spans the page, and disabling the borders. Problem is tables have it such that when you overflow you go into the next page, not into the next cell.

frown.gif
 
1 - 2 of 2 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top