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


Win a copy of The Software Craftsman this week in the Agile forum!
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: 19357
    
  10

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

Joined: Mar 22, 2005
Posts: 42954
    
  73
I'm not sure what you're trying to do, but maybe this sample code helps: https://www.coderanch.com/how-to/java/CreateWordDocument
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting consecutive character runs with different character properties using Apache POI api