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)
Alignment of table,grid or label in BIRT report
sriraj
Can you please let me know how to align any Grid, table or label to left ,right or bottom in report. which property I need to set to align these elements in my report. Please help me on this.
Find more posts tagged with
Comments
mwilliams
Hi Sriraj,
A few things you can do to help you align report items where you want them are:
*You can use a grid to position tables and other report items where you want them. This allows you to add columns and rows to get things where you'd like them.
*You can go to the report property editor and change the layout preference under advanced to fixed layout. This keeps BIRT from automatically changing report item dimensions.
*To do absolute positioning, you can use java scripting. All you need to do is add a bookmark to the item you want to position.... (i.e. TestTable in the code below) You then add the following script to a text element (make sure you select HTML in the text element):
<script>
document.getElementById('TestTable').style.position = "absolute";
document.getElementById('TestTable').style.top = 345;
document.getElementById('TestTable').style.left = 345;
</script>
Hope this helps.
Regards,
Michael
samurixhe
hello, mwilliams i am suffering the a similar problem, i tried ur javascript suggestion but my text element is still stuck in the upper left corner
This is my javascript:
<script>
document.getElementById('TestTable').style.position = "absolute";
document.getElementById('TestTable').style.top = "60";
document.getElementById('TestTable').style.left = "0";
</script>
the type is set to html
and the layout to fixed
Could you plz suggest a solution
mwilliams
Hi Samurixhe,
What kind of output are you using for your reports? Also, what is your version of BIRT?
Mani Kandan
<p>I also have similar problem like this with slight difference. I have many tables in report. I need to make some column should be left aligned. So i tried the left align property for label . It works fine in webviewer but not in exported excel. How to set left align property for both webviewer and exported report too.</p>
<p> </p>
<p>Please help me.. I'm trying this for 3 days still not getting perfect answer. </p>