Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to center the table and graph?
How to center the table and graph? [message #224301] Mon, 12 March 2007 18:57 Go to next message
Eric is currently offline EricFriend
Messages: 17
Registered: July 2009
Junior Member
Greetings,
I am currently using the BIRT 2.1.2. I have problem centering
the table and graph and displaying the in the middle of web page. I used
to get around with this by placing the grid and set the width to be 100%.
After that, everything is laying on the center.

Right now, I have migrated some of my reports from 2.0.1 to 2.1.2. All
centerd reports are shifted to the left. Is there any way I can center the
report?

Please advise. Thank you.
Re: How to center the table and graph? [message #224394 is a reply to message #224301] Mon, 12 March 2007 21:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Eric wrote:
> Greetings,
> I am currently using the BIRT 2.1.2. I have problem
> centering the table and graph and displaying the in the middle of web
> page. I used to get around with this by placing the grid and set the
> width to be 100%. After that, everything is laying on the center.
>
> Right now, I have migrated some of my reports from 2.0.1 to 2.1.2. All
> centerd reports are shifted to the left. Is there any way I can center
> the report?
>
> Please advise. Thank you.
>
Is the grid cell set with Vertical alignment = Middle and Text alignment
= Center?

Jason
Re: How to center the table and graph? [message #224450 is a reply to message #224394] Mon, 12 March 2007 22:13 Go to previous messageGo to next message
Eric is currently offline EricFriend
Messages: 17
Registered: July 2009
Junior Member
Jason Weathersby wrote:

> Eric wrote:
>> Greetings,
>> I am currently using the BIRT 2.1.2. I have problem
>> centering the table and graph and displaying the in the middle of web
>> page. I used to get around with this by placing the grid and set the
>> width to be 100%. After that, everything is laying on the center.
>>
>> Right now, I have migrated some of my reports from 2.0.1 to 2.1.2. All
>> centerd reports are shifted to the left. Is there any way I can center
>> the report?
>>
>> Please advise. Thank you.
>>
> Is the grid cell set with Vertical alignment = Middle and Text alignment
> = Center?

> Jason

Jason,
Yes, I have both properties set up to be Middle and Center. Please see
the attached sample code. Please advise. Thank you.


<?xml version="1.0" encoding="UTF-8"?>
<!-- Written by Eclipse BIRT 2.0 -->
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.6"
id="1">
<property name="createdBy">Eclipse BIRT Designer Version
2.1.2.v20070205-1728 Build &lt;20070205-1728></property>
<property name="units">in</property>
<property name="comments">Copyright (c) 2006 &lt;&lt;Your Company Name
here>></property>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new
Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<grid id="4">
<property name="textAlign">center</property>
<property name="verticalAlign">middle</property>
<property name="width">100%</property>
<column id="5"/>
<row id="6">
<property name="height">2.28125in</property>
<cell id="7">
<text id="8">
<property name="contentType">auto</property>
<text-property
name="content"><![CDATA[Hello!!]]></text-property>
</text>
<table id="9">
<property name="width">100%</property>
<column id="16"/>
<header>
<row id="10">
<cell id="11"/>
</row>
</header>
<detail>
<row id="12">
<cell id="13">
<label id="17">
<text-property
name="text">Hello</text-property>
</label>
</cell>
</row>
</detail>
<footer>
<row id="14">
<cell id="15"/>
</row>
</footer>
</table>
</cell>
</row>
</grid>
</body>
</report>
Re: How to center the table and graph? [message #224697 is a reply to message #224450] Tue, 13 March 2007 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Eric wrote:
> Jason Weathersby wrote:
>
>> Eric wrote:
>>> Greetings,
>>> I am currently using the BIRT 2.1.2. I have problem
>>> centering the table and graph and displaying the in the middle of web
>>> page. I used to get around with this by placing the grid and set the
>>> width to be 100%. After that, everything is laying on the center.
>>>
>>> Right now, I have migrated some of my reports from 2.0.1 to 2.1.2.
>>> All centerd reports are shifted to the left. Is there any way I can
>>> center the report?
>>>
>>> Please advise. Thank you.
>>>
>> Is the grid cell set with Vertical alignment = Middle and Text
>> alignment = Center?
>
>> Jason
>
> Jason,
> Yes, I have both properties set up to be Middle and Center. Please
> see the attached sample code. Please advise. Thank you.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- Written by Eclipse BIRT 2.0 -->
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.6"
> id="1">
> <property name="createdBy">Eclipse BIRT Designer Version
> 2.1.2.v20070205-1728 Build &lt;20070205-1728></property>
> <property name="units">in</property>
> <property name="comments">Copyright (c) 2006 &lt;&lt;Your Company
> Name here>></property>
> <page-setup>
> <simple-master-page name="Simple MasterPage" id="2">
> <page-footer>
> <text id="3">
> <property name="contentType">html</property>
> <text-property name="content"><![CDATA[<value-of>new
> Date()</value-of>]]></text-property>
> </text>
> </page-footer>
> </simple-master-page>
> </page-setup>
> <body>
> <grid id="4">
> <property name="textAlign">center</property>
> <property name="verticalAlign">middle</property>
> <property name="width">100%</property>
> <column id="5"/>
> <row id="6">
> <property name="height">2.28125in</property>
> <cell id="7">
> <text id="8">
> <property name="contentType">auto</property>
> <text-property
> name="content"><![CDATA[Hello!!]]></text-property>
> </text>
> <table id="9">
> <property name="width">100%</property>
> <column id="16"/>
> <header>
> <row id="10">
> <cell id="11"/>
> </row>
> </header>
> <detail>
> <row id="12">
> <cell id="13">
> <label id="17">
> <text-property
> name="text">Hello</text-property>
> </label>
> </cell>
> </row>
> </detail>
> <footer>
> <row id="14">
> <cell id="15"/>
> </row>
> </footer>
> </table>
> </cell>
> </row>
> </grid>
> </body>
> </report>
>
>
Is the issue that the two do not line up?

Jason
Re: How to center the table and graph? [message #224815 is a reply to message #224697] Tue, 13 March 2007 17:58 Go to previous messageGo to next message
Eric is currently offline EricFriend
Messages: 17
Registered: July 2009
Junior Member
Jason Weathersby wrote:

> Eric wrote:
>> Jason Weathersby wrote:
>>
>>> Eric wrote:
>>>> Greetings,
>>>> I am currently using the BIRT 2.1.2. I have problem
>>>> centering the table and graph and displaying the in the middle of web
>>>> page. I used to get around with this by placing the grid and set the
>>>> width to be 100%. After that, everything is laying on the center.
>>>>
>>>> Right now, I have migrated some of my reports from 2.0.1 to 2.1.2.
>>>> All centerd reports are shifted to the left. Is there any way I can
>>>> center the report?
>>>>
>>>> Please advise. Thank you.
>>>>
>>> Is the grid cell set with Vertical alignment = Middle and Text
>>> alignment = Center?
>>
>>> Jason
>>
>> Jason,
>> Yes, I have both properties set up to be Middle and Center. Please
>> see the attached sample code. Please advise. Thank you.
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!-- Written by Eclipse BIRT 2.0 -->
>> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.6"
>> id="1">
>> <property name="createdBy">Eclipse BIRT Designer Version
>> 2.1.2.v20070205-1728 Build &lt;20070205-1728></property>
>> <property name="units">in</property>
>> <property name="comments">Copyright (c) 2006 &lt;&lt;Your Company
>> Name here>></property>
>> <page-setup>
>> <simple-master-page name="Simple MasterPage" id="2">
>> <page-footer>
>> <text id="3">
>> <property name="contentType">html</property>
>> <text-property name="content"><![CDATA[<value-of>new
>> Date()</value-of>]]></text-property>
>> </text>
>> </page-footer>
>> </simple-master-page>
>> </page-setup>
>> <body>
>> <grid id="4">
>> <property name="textAlign">center</property>
>> <property name="verticalAlign">middle</property>
>> <property name="width">100%</property>
>> <column id="5"/>
>> <row id="6">
>> <property name="height">2.28125in</property>
>> <cell id="7">
>> <text id="8">
>> <property name="contentType">auto</property>
>> <text-property
>> name="content"><![CDATA[Hello!!]]></text-property>
>> </text>
>> <table id="9">
>> <property name="width">100%</property>
>> <column id="16"/>
>> <header>
>> <row id="10">
>> <cell id="11"/>
>> </row>
>> </header>
>> <detail>
>> <row id="12">
>> <cell id="13">
>> <label id="17">
>> <text-property
>> name="text">Hello</text-property>
>> </label>
>> </cell>
>> </row>
>> </detail>
>> <footer>
>> <row id="14">
>> <cell id="15"/>
>> </row>
>> </footer>
>> </table>
>> </cell>
>> </row>
>> </grid>
>> </body>
>> </report>
>>
>>
> Is the issue that the two do not line up?

> Jason

Jason,
This is just an example to show after setting the
textAlign to center and verticalAlign to middle the elements inside the
grid are supposed disply in the center of the page in the browser but it
is not. I have done this on BIRT 2.0.1 with table and other elements
display in the center of page using grid.
Is there any way I can display the element in the center by setting grid
width in 100% and textAlign to center?

Please advise. Thank you.
Re: How to center the table and graph? [message #224903 is a reply to message #224815] Tue, 13 March 2007 18:59 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Eric wrote:
> Jason Weathersby wrote:
>
>> Eric wrote:
>>> Jason Weathersby wrote:
>>>
>>>> Eric wrote:
>>>>> Greetings,
>>>>> I am currently using the BIRT 2.1.2. I have problem
>>>>> centering the table and graph and displaying the in the middle of
>>>>> web page. I used to get around with this by placing the grid and
>>>>> set the width to be 100%. After that, everything is laying on the
>>>>> center.
>>>>>
>>>>> Right now, I have migrated some of my reports from 2.0.1 to 2.1.2.
>>>>> All centerd reports are shifted to the left. Is there any way I can
>>>>> center the report?
>>>>>
>>>>> Please advise. Thank you.
>>>>>
>>>> Is the grid cell set with Vertical alignment = Middle and Text
>>>> alignment = Center?
>>>
>>>> Jason
>>>
>>> Jason,
>>> Yes, I have both properties set up to be Middle and Center.
>>> Please see the attached sample code. Please advise. Thank you.
>>>
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!-- Written by Eclipse BIRT 2.0 -->
>>> <report xmlns="http://www.eclipse.org/birt/2005/design"
>>> version="3.2.6" id="1">
>>> <property name="createdBy">Eclipse BIRT Designer Version
>>> 2.1.2.v20070205-1728 Build &lt;20070205-1728></property>
>>> <property name="units">in</property>
>>> <property name="comments">Copyright (c) 2006 &lt;&lt;Your Company
>>> Name here>></property>
>>> <page-setup>
>>> <simple-master-page name="Simple MasterPage" id="2">
>>> <page-footer>
>>> <text id="3">
>>> <property name="contentType">html</property>
>>> <text-property
>>> name="content"><![CDATA[<value-of>new
>>> Date()</value-of>]]></text-property>
>>> </text>
>>> </page-footer>
>>> </simple-master-page>
>>> </page-setup>
>>> <body>
>>> <grid id="4">
>>> <property name="textAlign">center</property>
>>> <property name="verticalAlign">middle</property>
>>> <property name="width">100%</property>
>>> <column id="5"/>
>>> <row id="6">
>>> <property name="height">2.28125in</property>
>>> <cell id="7">
>>> <text id="8">
>>> <property name="contentType">auto</property>
>>> <text-property
>>> name="content"><![CDATA[Hello!!]]></text-property>
>>> </text>
>>> <table id="9">
>>> <property name="width">100%</property>
>>> <column id="16"/>
>>> <header>
>>> <row id="10">
>>> <cell id="11"/>
>>> </row>
>>> </header>
>>> <detail>
>>> <row id="12">
>>> <cell id="13">
>>> <label id="17">
>>> <text-property
>>> name="text">Hello</text-property>
>>> </label>
>>> </cell>
>>> </row>
>>> </detail>
>>> <footer>
>>> <row id="14">
>>> <cell id="15"/>
>>> </row>
>>> </footer>
>>> </table>
>>> </cell>
>>> </row>
>>> </grid>
>>> </body>
>>> </report>
>>>
>>>
>> Is the issue that the two do not line up?
>
>> Jason
>
> Jason,
> This is just an example to show after setting the textAlign to
> center and verticalAlign to middle the elements inside the grid are
> supposed disply in the center of the page in the browser but it is not.
> I have done this on BIRT 2.0.1 with table and other elements display in
> the center of page using grid.
> Is there any way I can display the element in the center by setting grid
> width in 100% and textAlign to center?
> Please advise. Thank you.
>
>
>
This looks centered in my browser. Can you take a screenshot and
explain where you want it?

Jason
Previous Topic:Engine generates random names for images
Next Topic:how to create report by accessing data from obect in BIRT
Goto Forum:
  


Current Time: Fri Apr 26 21:20:10 GMT 2024

Powered by FUDForum. Page generated in 0.03048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top