Had the chance to play around with some code and I am beginning to think that
it will not be possible to write text into a textbox using hwpf.

Firstly, my suggestion to use placeholders was completely useless. The
placeholder was not recognised at all; I had hoped that it would be much as
the text within a table's cell is. Secondly, all you are able to do with the
Shape once you have it is recover it's location within the document and it's
dimensions. Sadly, it does not seem possible to position a piece of text
using these values so that it appears within the textbox.

Sorry I could not be of more help.

Yours

Mark B


tapaswini wrote:
> 
> Thanks Mark for your suggestion. 
> I am able to get the Shape objects but problem is there is no method to
> set the text in the shape object. 
> 
> Also, I am not able to get the correct Range object for the area inside
> the textbox. Please let me know how can I refer to the area inside a
> textbox so that I can modify the text. 
> 
> I have full control over the template and can create placeholders. But I
> am not able to modify a piece of text which is inside a textbox. 
> 
> Any suggestion will be very helpful. 
> 
> Regards, 
> Tapaswini 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/not-able-to-get-the-correct-Range-object-for-the-area-inside-the-textbox-tp23978886p23987212.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to