File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 18541
    
    8

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

Joined: Mar 22, 2005
Posts: 41096
    
  44
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting consecutive character runs with different character properties using Apache POI api
 
Similar Threads
unable to open excel document
Generate large excel using POI
How to read Microsoft Excel (97, 2003, 2007) through OpenOffice API
Problem with exporting data in excel
$ symbol not displayed properly in excel