Thanks for your quick reply Oliver,

But I'm already getting the same exception :-( even now I'm using the
following code:

String headerContents = xHeaderText.getString();

Best Regards,

Oliver Specht wrote:
> Jordi Sanchez wrote:
>> Hi all,
>>
>> I don't know if I'm doing something wrong but I'm trying to retrieve the
>> text from the header / footer of a text document and I get a runtime
>> exception.
>> I've seen that if there is no tables in the header/footer I have no
>> problem
>> for retrieving the text contents but if the header/footer only contains
>> a table (filled, of course, with some text), I get the following
>> exception:
>>
>>   XTextCursor xTextCursor* = xHeaderText.createTextCursor();*
>>   
> Hi,
> the cursor cannot be created because there's no text content outside of
> the table.
> But you don't need this cursor if you only want to get the text -
>    xHeaderText.getString()
> does the job.
> 
> Regards,
> Oliver
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to