Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
format links in BIRT
work_ph
is there a way to format the links in labels with css? How can I remove the underline of links in BIRT?
Thanks a lot in advance!
Find more posts tagged with
Comments
Chris605
Hi work_ph<br />
<br />
perhaps this will help you:<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/forum/designing-birt-reports/17769-changing-style-hyperlinks.html'>http://www.birt-exchange.org/forum/designing-birt-reports/17769-changing-style-hyperlinks.html</a><br
/>
<br />
You can use a .css file e.g. as a shared resource. Then you can use the styledefinitions by importing them into the report.<br />
<br />
Hope that helps,<br />
Regards<br />
<br />
Chris
work_ph
Thanks Chris!
I tried your link and the links on that thread but finally it didnt work either. BIRT doesn't import my link formats.
Is there another way to format my links because they dont look nice at all on my report!
I am grateful for any help
Thanks
work_ph
Chris605
I've tried another way to find a solution. I added theese lines:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>a:link, a:visited, a:hover, a:active {
text-decoration: none;
color: red;
font-weight: bold;
}</pre>
<br />
to the style.css in the plugins directory (org.eclipse.birt.report.viewer). Unfortunatly the preview-mode shows me now only a blue bold link, not red and without an underline...<br />
<br />
Sorry but perhaps will you find the right css file.<br />
<br />
Regards<br />
<br />
Chris
work_ph
Hi found a solution:
Simply add in your javascript:
<script>
document.write("<style> a:link { text-decoration: none;}</style>");
</script>
then it should work without a problem...
work_phil
YaBen
<blockquote class='ipsBlockquote' data-author="work_ph"><p>Hi found a solution:<br />
<br />
Simply add in your javascript:<br />
<br />
<script><br />
<br />
document.write("<style> a:link { text-decoration: none;}</style>");<br />
<br />
</script><br />
<br />
then it should work without a problem...<br />
<br />
work_phil</p></blockquote>
<br />
Hi there,<br />
<br />
Thank you for this suggestion, I am facing the same kind of problem. Just a question: in which javascript do you add this ? A javascript file added to the final html page or somewhere in the BIRT report's scripts ?<br />
<br />
Thanks in advance.<br />
<br />
YaBen.
work_ph
Hi YaBen!
I added the code in a text label somewhere in the report.
However, this method does not work when you execute the report in the Web Viewer. I dont know why.
So I am trying to find another way to format the links in the Viewer. Is there a global css file that is in charge of the Viewer where I can change the hyperlink format??
Thanks for your help!
work_ph