aspose file tools*
The moose likes Other Open Source Projects and the fly likes Inserting consecutive character runs with different character properties using Apache POI api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Inserting consecutive character runs with different character properties using Apache POI api" Watch "Inserting consecutive character runs with different character properties using Apache POI api" New topic
Author

Inserting consecutive character runs with different character properties using Apache POI api

prashant ingale
Greenhorn

Joined: Nov 06, 2012
Posts: 3
I am writing a microsoft office file using Apache POI-HWPF api (3.8.0) and I am facing one problem to insert two/more consecutive character runs with different character properties.
When inserting two consecutive character runs with different properties first character run properties are override by second character run properties.


Thanks in advanced.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18907
    
    8

Welcome to the ranch, Prashant! Could you post the code which causes this problem?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42631
    
  65
I'm not sure what you're trying to do, but maybe this sample code helps: https://www.coderanch.com/how-to/java/CreateWordDocument


Ping & DNS - my free Android networking tools app
prashant ingale
Greenhorn

Joined: Nov 06, 2012
Posts: 3
Thanks Ulf Dittmer,
Using your sample code my problem is solved.
I have one more query is there any way to set font Type (name) to individual character run
 
Don't get me started about those stupid light bulbs.
 
subject: Inserting consecutive character runs with different character properties using Apache POI api