Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
prashant ingale
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch, Prashant! Could you post the code which causes this problem?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic