15 Answers, 1 is accepted
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.
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.
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
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.
More specifically, is it currently possible, or going to be possible in the future, to have a working hyperlinks in PDF reports?
Thank you
You can see the end result of our work in the already released Q2 version:
- Product Sales per Period report
- Employee Sales Summary report
- Adding Interactivity to Reports help section.
All the best,
Steve
the Telerik team
Thanks.
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
When will there be a timeline?
Thanks,
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
Thanks,
Jon
Thanks.
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..