Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to Make Reports Attractive
How to Make Reports Attractive [message #804566] Wed, 22 February 2012 19:39 Go to next message
Birt Unmitigated is currently offline Birt Unmitigated
Messages: 14
Registered: February 2012
Junior Member
Hi again,

So I made my first report, and Birt kind of just throws the data on the screen.

I'd like some formatting niceties such as alternating colors for alternating table rows, spacing between report elements, and getting rid of the date at the bottom of the report.

Are there any default themes that do some of this stuff? It seems like it would be a very nice feature to add if not.

(I'm coming from SQL Server Reporting Services (SSRS) which let's you choose between 10 or so different styles when you create a report. When you're just trying to do something fast, it really comes in handy.)

Thanks again,

B
Re: How to Make Reports Attractive [message #804906 is a reply to message #804566] Thu, 23 February 2012 05:57 Go to previous messageGo to next message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
Hi,

1. For alternating colors for alternating table rows :

You can find "Highlights" tab in the "Property Editor" tab of a detail row of Table where you can specify a condition on which color of rows should be decided. You can set alternate colors for alternate rows or even for a specific value or range of values from dataset fields.

First declare a variable on initialise event of report as say "rowCount = 0;"
Then increment this variable on onCreate event of table detail row
"rowCount = rowCount + 1;".

Select detail row of table
Go to to the Property Editor -> Highlights tab
Specify condition say "rowCount % 2 Equal to 0" and choose colours below
Similarly add another condition "rowCount % 2 Equal to 1" and choose colours.

2. For spacing between report elements :

Instead of placing the report elements directly on the report, you can insert a grid element as a container for all of your report elements and place all your report elements in different grid cells. Then you can easily increase or decrease space between the elements by just dragging particular grid cell's border.

3. For getting rid of the date at the bottom of the report :

Click on "Master Page" tab scroll down to the bottom where you can find a text element at the footer and delete it.


Here http://www.birt-exchange.org/org/devshare/ you can find numerous examples.
Enjoy Wink

[Updated on: Thu, 23 February 2012 06:08]

Report message to a moderator

Re: How to Make Reports Attractive [message #805380 is a reply to message #804566] Thu, 23 February 2012 17:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You can easily import pre-created styles that make the report look nice.
Alternating colors is also simple (Attached example with imported
style sheet. css is included so you can use in your reports)
See this post:
http://birtworld.blogspot.com/2006/04/get-some-style.html

For libraries and templates you may want to look at this:

http://www.theserverside.com/news/1364376/Using-Eclipse-BIRT-Report-Libraries-and-Templates

Jason

On 2/22/2012 2:39 PM, Birt Unmitigated wrote:
> Hi again,
>
> So I made my first report, and Birt kind of just throws the data on the
> screen.
>
> I'd like some formatting niceties such as alternating colors for
> alternating table rows, spacing between report elements, and getting rid
> of the date at the bottom of the report.
>
> Are there any default themes that do some of this stuff? It seems like
> it would be a very nice feature to add if not.
>
> (I'm coming from SQL Server Reporting Services (SSRS) which let's you
> choose between 10 or so different styles when you create a report. When
> you're just trying to do something fast, it really comes in handy.)
>
> Thanks again,
>
> B
  • Attachment: example.zip
    (Size: 3.48KB, Downloaded 113 times)
Re: How to Make Reports Attractive [message #805438 is a reply to message #804906] Thu, 23 February 2012 19:17 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Rohit,

I apologize, I did not see that you already responded.

Jason

On 2/23/2012 12:57 AM, Rohit Lambi wrote:
> Hi,
>
> 1. For alternating colors for alternating table rows :
> You can find "Highlights" tab in the "Property Editor" tab of a detail
> row of Table where you can specify a condition on which color of rows
> should be decided. You can set alternate colors for alternate rows or
> even for a specific value or range of values from dataset fields.
>
> First declare a variable on initialise event of report as say "rowCount
> = 0;"
> Then increment this variable on onCreate event of table detail row
> "rowCount = rowCount + 1;".
>
> Select detail row of table
> Go to to the Property Editor -> Highlights tab
> Specify condition say "rowCount % 2 Equal to 0" and choose colours below
> Similarly add another condition "rowCount % 2 Equal to 1" and choose
> colours.
>
> 2. For spacing between report elements :
>
> Instead of placing the report elements directly on the report, you can
> insert a grid element as a container for all of your report elements and
> place all your report elements in different grid cells. Then you can
> easily increase or decrease space between the elements by just dragging
> particular grid cell's border.
>
> 3. For getting rid of the date at the bottom of the report :
>
> Click on "Master Page" tab scroll down to the bottom where you can find
> a text element at the footer and delete it.
Re: How to Make Reports Attractive [message #805912 is a reply to message #805438] Fri, 24 February 2012 09:38 Go to previous message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
Jason,

No problem, that's okay no need to apologize;
your response is far much better than mine and
that is what we want here the best possible answer to a query.

But please help me with my problem Smile here

http://www.eclipse.org/forums/index.php/m/804876/#msg_804876

Thank You Smile

[Updated on: Fri, 24 February 2012 12:22]

Report message to a moderator

Previous Topic:Can't startup the OSGI fr
Next Topic:Integrating Designer into RCP
Goto Forum:
  


Current Time: Mon Sep 22 06:15:06 GMT 2014

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

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