Howdy!
I've been trying to add a Link (URL action) to a cell in a table that I am building. Each row will have a different link.
Any suggestions on how to do this?
Here's the latest thing I tried to do :P
Dim MyLabel As Label = New Label("xxxxx", 50, 50, 400, 20, ceTe.DynamicPDF.Font.Helvetica, 18, _
RgbColor.Blue)
MyLabel.Underline = True
' Set the action then create the link
Dim action As UrlAction = New UrlAction("http://www.dynamicpdf.com")
Dim MyLink As Link = New Link(50, 50, CeTe.DynamicPDF.Font.Helvetica.GetTextWidth("xxxxx", 18), _
20, action)
MyTextArea.Add(MyLabel)
MyTextArea.Add(MyLink)
row1.Cells.Add(MyTextArea)
Adding a Link to a table Cell
Re: Adding a Link to a table Cell
Support · Apr 30, 2007Hello,
It is not possible to add the link element to the cell of a table. It is a limitation of the link element. You will have to add the link on the page by specifying the x, y coordinates. The link element gets added relative to the page. You will have to keep track of what row and column you want to add the link to, use a counter to add the height of each row and then add the link.
Thanks,
ceTe Software Support Team
Re: Adding a Link to a table Cell
Forum member · Nov 1, 2007I am evaluating the Generator product at the moment .. is this still the case as this seem a rather large limitation of the link element?
I need to produce a product report that links each product to a web page with the full product details and am using nested tables to get a 2 column effect.... isn’t this going to be quite hard to find the coords of the label I am attaching the link onto?
I would have thought putting a text link in a table cell is a common task and requirement? .. your product seems to do everything I require for this project and like the documentation etc but making sure a the link overlays the text in this way seems a bit hit and miss?
Re: Adding a Link to a table Cell
Support · Nov 2, 2007Hello,
Yes this is still the limitation in v4.0 of our product.
Ability to add links to the cell of the table is a feature we are adding in v5.0 of our product. IF you would be interested in beta testing, please send an email to our [^a|mailto:support@cete.com|Support Team^] so that they can add you to the list of beta testers.
Thanks,
ceTe Software Support Team