This is a migrated thread and some comments may be shown as answers.

How to display field in HyperLink ?

15 Answers 668 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
kariem
Top achievements
Rank 1
kariem asked on 22 Feb 2009, 09:22 AM
Hello,
I want to display some fields in Hyperlink , as when clicked go to specific from , please if it's available tell me how .
Thanks in advance

Kariem Samy

15 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Feb 2009, 08:42 AM
Hi kariem,

Currently Telerik Reporting does not operate with HTML content. Exception is when the report is rendered in HTML because the browser that usually displays the report, handles the HTML itself. Unfortunately the rest of the supported formats - Image (GDI), PDF, XLS, RTF do not support HTML out of the box yet, but the good news is that we are working on implementing such functionality for the Q1 2009 release expected in mid March (more info on RoadMap).

However if you are using only the web viewer, you can achieve the desired behavior. Simply in the text that you need to be link, change the expression, so that it can be evaluated to a valid HTML hyperlink. For example instead of
=Fields.MasterData
use
="<a href='Page2.aspx?MasterID=" + Fields.MasterID + "'>" + Fields.MasterData + "<\a>"

Keep in mind that if you render the report using another rendering extension or print the report with the hyperlink, the raw HTML will be displayed.

Try this approach and write us if you need further assistance.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sean Davidson
Top achievements
Rank 1
answered on 07 Jul 2009, 01:21 AM
This workaround doesn't seem to work on the Q2_2009 version.  We have a code that uses this workaround using the Q1_2009 version and it was working but when we upgraded to Q2_2009, it basically broke (i.e. it's now displaying the url and the text is no longer clickable).  Any new workaround for this one?  Cheers.
0
Jason
Top achievements
Rank 1
answered on 09 Jul 2009, 03:04 PM
We just downloaded Q2 as well and I would like to know how to achieve the same functionality, if anyone has any input I would greatly appreciate it.
0
Steve
Telerik team
answered on 09 Jul 2009, 03:31 PM
Hi guys,

This is intentional and is part of our plans to make all rendering formats alike. Till now, as explained in my previous post, this behavior was due to the browser which handled the html and we simply did not strip/handle the html tags in any way, which we consider was an omission on our end. However with the introduction of the HtmlTextBox item, we decided it is about time to change this behavior and allow html only through this item. Currently it supports only text formatting options, but soon this would change and other html tags (that are useful for the report product) would be handled as well.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Daniel
Top achievements
Rank 1
answered on 27 Jul 2009, 08:11 AM

Hi guys,

I am working on porting some reports from Active Reports 2.0 to Telerik Reports. Everything went smoothly so far and I am quite happy with choosing Telerik Reports as our reporting engine. However, I have encountered a small problem, which I hope you will assist me on solving it.
Some of our old reports use hyperlinks which point to some external web pages. Imagine that the report contains a list of products and the name of the product is hyperlinked to the corresponding web page of the product on a e-commerce web site. So when the report user cliks on the product name in the report, a new browser page/instance opens with the hyperlinked content.
The rendering format we are using is PDF (at least for the first release of our software). So I would need a way to include hyperlinks in my PDF reports.
I have read the posts related to this subject, but I am still not sure if the new HtmlTextBox item will help me.
I would appreciate any help (workaround) you could provide.

 

Thanks,

Daniel

0
Steve
Telerik team
answered on 27 Jul 2009, 09:19 AM
Hello Daniel,

The HtmlTextBox cannot handle hyperlinks in the current product version. However we are currently considering its implementation and most likely we would start off with the HTML rendering (Q2 SP1), since this was working before (although not by the product directly) and expand to cover all export formats that support hyperlinks for subsequent versions.

Hope this clears any confusion.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Michael DeBerry
Top achievements
Rank 1
answered on 13 Jul 2010, 05:48 PM
What is the current status on this? I see a few conflicting statements about where you all were going to go with this. 

More specifically, is it currently possible, or going to be possible in the future, to have a working hyperlinks in PDF reports?

Thank you
0
Steve
Telerik team
answered on 14 Jul 2010, 05:03 PM
Hi Michael,

You can see the end result of our work in the already released Q2 version:
These hyperlinks are not interactive in any of the export formats in the current version. Although we cannot engage with a time frame at this point, we would do our best to make the hyperlinks work at least in PDF for subsequent versions of the product.

All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jon Markee
Top achievements
Rank 1
answered on 14 Dec 2010, 06:46 AM
Any update on when this functionality will be implemented on exported pdf reports or rtf reports?


Thanks.
0
Steve
Telerik team
answered on 14 Dec 2010, 09:11 AM
Hi Jon Markee,

As stated in the previous reply, we would work on this for subsequent versions, but we cannot engage with a timeframe at this point.

Best wishes,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Jon Markee
Top achievements
Rank 1
answered on 14 Dec 2010, 05:41 PM
This feature is pending my deployment of this product as my customers need the ability to send a report in exported format and have it retain the links. 

When will there be a timeline?

Thanks,

Jon
0
Steve
Telerik team
answered on 16 Dec 2010, 01:02 PM
Hello Jon,

Once we research upon it and have clear idea how to implement it, we would update our Roadmap. We already have plans for the Q1 2011 release, but would see if we can squeeze this one out, no promises though.

Kind regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Jon Markee
Top achievements
Rank 1
answered on 29 Dec 2010, 09:32 PM
If you can keep me posted on your ability to squeeze this feature in sooner please keep me posted.  I love the telerik reporting solution and I am just waiting on this feature before I can deploy your solution.

Thanks,

Jon
0
John
Top achievements
Rank 1
answered on 04 Jan 2011, 11:18 PM
We too would like to know if (and when) support for URLs in exported PDFs will be supported.  This is a requirement for our client - as it is we cannot deploy our project without this feature.  In all honesty it's very hard to understand why it is not currently implemented - hyperlinks are commonplace in virtually all products anymore.  Any information as to if and when this feature would be implmented will be greatly appreciated.

Thanks.
0
bas
Top achievements
Rank 1
answered on 14 Jul 2011, 11:37 AM

Dear Steve,
thanks for your code.
="<a href='Page2.aspx?MasterID=" + Fields.MasterID + "'>" + Fields.MasterData + "<\a>"

this code is works well, but i want to open the "Page2.aspx" in another dialog window using javascript.
for example

="<a href="javascript: window.showModalDialog('Page2.aspx?MasterID=" + Fields.MasterID + " ','Dialog_Window_Name','dialogHeight=375px;dialogwidth=500px;status=no;scrolling=yes;resizable=no');">" + Fields.MasterData + "</a>"

i am getting this error

"An error has occured while processing TextBox 'textBox5':
Missing operator before javascript operand."

after that i changed double quote(") into single quote(') of javascript prefix (i.e)  <a href='javascript:..'> . but popup is not fire..
i thing the problem with single and double quote specification. how can i solve this... pls can u help me
Thanks in advance..
Tags
General Discussions
Asked by
kariem
Top achievements
Rank 1
Answers by
Steve
Telerik team
Sean Davidson
Top achievements
Rank 1
Jason
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Michael DeBerry
Top achievements
Rank 1
Jon Markee
Top achievements
Rank 1
John
Top achievements
Rank 1
bas
Top achievements
Rank 1
Share this question
or