Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Anyone use Apache POI?
New Posts  All Forums:Forum Nav:

Anyone use Apache POI?

post #1 of 2
Thread Starter 
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.
Edited by xHassassin - 4/13/11 at 9:39pm
    
CPUMotherboardGraphicsRAM
E8400 GIGABYTE GA-P35-DS3L eVGA 9800GT Stock Speeds GSkill 4GB (2x2GB) PC6400 
Hard DriveOptical DriveOSMonitor
Samsung F3 500GB Samsung 22X DVD Drive Windows 7 64-bit 22" Acer x223w 
KeyboardPowerCaseMouse
IBM Model M Model 1391401 Antec EarthWatts 500W Troglodytic Tech Terminal Razer Deathadder 
Mouse Pad
Steelseries Qck+ 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
E8400 GIGABYTE GA-P35-DS3L eVGA 9800GT Stock Speeds GSkill 4GB (2x2GB) PC6400 
Hard DriveOptical DriveOSMonitor
Samsung F3 500GB Samsung 22X DVD Drive Windows 7 64-bit 22" Acer x223w 
KeyboardPowerCaseMouse
IBM Model M Model 1391401 Antec EarthWatts 500W Troglodytic Tech Terminal Razer Deathadder 
Mouse Pad
Steelseries Qck+ 
  hide details  
Reply
post #2 of 2
Thread Starter 
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
    
CPUMotherboardGraphicsRAM
E8400 GIGABYTE GA-P35-DS3L eVGA 9800GT Stock Speeds GSkill 4GB (2x2GB) PC6400 
Hard DriveOptical DriveOSMonitor
Samsung F3 500GB Samsung 22X DVD Drive Windows 7 64-bit 22" Acer x223w 
KeyboardPowerCaseMouse
IBM Model M Model 1391401 Antec EarthWatts 500W Troglodytic Tech Terminal Razer Deathadder 
Mouse Pad
Steelseries Qck+ 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
E8400 GIGABYTE GA-P35-DS3L eVGA 9800GT Stock Speeds GSkill 4GB (2x2GB) PC6400 
Hard DriveOptical DriveOSMonitor
Samsung F3 500GB Samsung 22X DVD Drive Windows 7 64-bit 22" Acer x223w 
KeyboardPowerCaseMouse
IBM Model M Model 1391401 Antec EarthWatts 500W Troglodytic Tech Terminal Razer Deathadder 
Mouse Pad
Steelseries Qck+ 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Anyone use Apache POI?