OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[Calc] Hyperlinks and Conditional Formats

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Kathrin
Newbie
Newbie


Joined: 18 Oct 2010
Posts: 1

PostPosted: Fri Oct 22, 2010 5:34 am    Post subject: [Calc] Hyperlinks and Conditional Formats Reply with quote

Hello,

I have problems using hyperlinks in calc cells.

I have a cell that contains a string and uses a conditional format. Now, I want to use a hyperlink instead of a simple string value but (and that's the problem) without changing the visual appearance.

What I have for now is:
Code:

doc = thisComponent
oLink = doc.createInstance("com.sun.star.text.TextField.URL")
oLink.URL = baseURL + item.id + "-CL"
oLink.Representation = item.iName
cell.insertTextContent(cell.getText().createTextCursor(),oLink,true)


The inserted link works fine, but it really looks ugly and it ignores my conditional format.

So, how can I achieve a sort of invisible hyperlink?

Thanks in advance,

Kathrin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group