Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Customising BIRT Sample Viewer(How to achieve the customization to add image etc.)
Customising BIRT Sample Viewer [message #812159] Sat, 03 March 2012 10:07 Go to next message
GG - is currently offline GG -Friend
Messages: 2
Registered: March 2012
Junior Member
Hi,
I am a novice to BIRT.
I am using BIRT Viewer for viewing the reports on JBoss 5.1.
I want to customise the sample viewer for my web application.
1. for display name update from "BIRT Report Viewer" to "Report Viewer"
2. add logo of company for which reports are developed in the same panel

I could change the background colour of navigation bar.
But how to customise it for adding image , disaply name?

Regards,GG


Re: Customising BIRT Sample Viewer [message #813920 is a reply to message #812159] Mon, 05 March 2012 21:06 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

To change the title do one of the following

1- Add the __title parameter to your URL ie
http://localhost:8080/3.7.0/frameset?__report=test.rptdesign&sample=my+parameter&__title=My
Title

2 - You could extract the viewservlets.jar in the WEB-INF/lib and change
the birt.viewer.title=BIRT Report Viewer entry in the
\org\eclipse\birt\report\resource\Messages.properties file. (You could a

To add an image you should be able to just modify the jsp fragments.
Where do you want the image?

Jason



On 3/3/2012 5:07 AM, GG - wrote:
> Hi, I am a novice to BIRT.
> I am using BIRT Viewer for viewing the reports on JBoss 5.1.
> I want to customise the sample viewer for my web application.
> 1. for display name update from "BIRT Report Viewer" to "Report Viewer"
> 2. add logo of company for which reports are developed in the same panel
> I could change the background colour of navigation bar. But how to
> customise it for adding image , disaply name?
>
> Regards,GG
>
>
>
Re: Customising BIRT Sample Viewer [message #814531 is a reply to message #813920] Tue, 06 March 2012 15:09 Go to previous messageGo to next message
SanthoshMani Nachiappan is currently offline SanthoshMani NachiappanFriend
Messages: 2
Registered: March 2012
Junior Member
Hello Jason,

I too had the same confusion. Thanks for the info. I need to insert the display image above the title in the header itself. Which JSP should look into for this ?.

Re: Customising BIRT Sample Viewer [message #814647 is a reply to message #814531] Tue, 06 March 2012 18:07 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you are using the frameset servlet mapping look at the
FramesetFragment.jsp in the webcontent\birt\pages\layout folder.
Specifically around line number 140 you will see a table with the
comment <!-- Header seciton -->. That is where I would put it in.

Jason

On 3/6/2012 10:09 AM, SanthoshMani Nachiappan wrote:
> Hello Jason,
>
> I too had the same confusion. Thanks for the info. I need to insert the
> display image above the title in the header itself. Which JSP should
> look into for this ?.
>
>
Re: Customising BIRT Sample Viewer [message #878549 is a reply to message #814647] Tue, 29 May 2012 14:08 Go to previous messageGo to next message
swapnil jagadale is currently offline swapnil jagadaleFriend
Messages: 3
Registered: May 2012
Junior Member
Hi Jason

I made the changes in the file-->
webcontent\birt\pages\layout\FramesetFragment.jsp
But font-size of title is very small. I tried to increase it but its not
being displayed on the web page.I tried to insert images in the heder but its
not working. I gave complete image path still the images are
not shown in the web page header. Need help.


Here is the code I used.<!-- Header section --> (as you said line 140)
<TABLE ID='layout' CELLSPACING='0' CELLPADDING='0' STYLE='width:100%;height:100%'>
<%
if( attributeBean.isShowTitle( ) )
{%>
<TR>
<TD COLSPAN='2'>
<TABLE BORDER=0 CELLSPACING="0" CELLPADDING="1px" WIDTH="100%" align="center">
<TR align="center">
<TD > <img src="D:\new\Tomcat 6.0\webapps\birt\webcontent\birt\images\LOGO1.jpg" style="height: 49px; width: 132px; "></TD>
<TD style="color:blue; font-size: 100"><B>Delivery Dashboard</B></TD>
<TD><img src="D:\new\Tomcat 6.0\webapps\birt\webcontent\birt\images\imagesC.jpg" style="height: 49px; width: 132px; "></TD>

</TR></TABLE></TD></TR>

Here is the snapshot of the report (viewed on tomcat server)

index.php/fa/9941/0/

Waiting for your reply eagerly.

Thanks and Regards
swapnil
  • Attachment: Image.jpg
    (Size: 48.85KB, Downloaded 2241 times)

[Updated on: Tue, 29 May 2012 14:14]

Report message to a moderator

Re: Customising BIRT Sample Viewer [message #878569 is a reply to message #812159] Tue, 29 May 2012 14:41 Go to previous messageGo to next message
swapnil jagadale is currently offline swapnil jagadaleFriend
Messages: 3
Registered: May 2012
Junior Member
Hi Jason

I made the changes in the file-->
webcontent\birt\pages\layout\FramesetFragment.jsp
But font-size of title is very small. I tried to increase it but its not
being displayed on the web page.I tried to insert images in the heder but its
not working. I gave complete image path still the images are
not shown in the web page header. Need help.


Here is the code I used.<!-- Header section --> (as you said line 140)
<TABLE ID='layout' CELLSPACING='0' CELLPADDING='0' STYLE='width:100%;height:100%'>
<%
if( attributeBean.isShowTitle( ) )
{%>
<TR>
<TD COLSPAN='2'>
<TABLE BORDER=0 CELLSPACING="0" CELLPADDING="1px" WIDTH="100%" align="center">
<TR align="center">
<TD > <img src="D:\new\Tomcat 6.0\webapps\birt\webcontent\birt\images\LOGO1.jpg" style="height: 49px; width: 132px; "></TD>
<TD style="color:blue; font-size: 100"><B>Delivery Dashboard</B></TD>
<TD><img src="D:\new\Tomcat 6.0\webapps\birt\webcontent\birt\images\imagesC.jpg" style="height: 49px; width: 132px; "></TD>
</TR></TABLE></TD></TR>

Here is the snapshot of the report (viewed on tomcat server)

index.php/fa/9944/0/

Waiting for your reply eagerly.

Thanks and Regards
swapnil
  • Attachment: Image.jpg
    (Size: 48.85KB, Downloaded 2193 times)
Re: Customising BIRT Sample Viewer [message #878631 is a reply to message #878569] Tue, 29 May 2012 15:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you try putting the images in the following folder

webcontent\birt\images


and then reference them like:


<TR align="center">
<TD > <img src="birt/images/LOGO1.jpg" style="height: 49px; width:
132px; "></TD>
<TD style="color:blue; font-size: 100"><B>Delivery Dashboard</B></TD>
<TD><img src="birt/images/imagesC.jpg" style="height: 49px; width:
132px; "></TD>
</TR></TABLE></TD></TR>

Jason

On 5/29/2012 10:41 AM, swapnil jagadale wrote:
> Hi Jason
>
> I made the changes in the file-->
> webcontent\birt\pages\layout\FramesetFragment.jsp
> But font-size of title is very small. I tried to increase it but its not
> being displayed on the web page.I tried to insert images in the heder but its
> not working. I gave complete image path still the images are
> not shown in the web page header. Need help.
>
>
> Here is the code I used.<!-- Header section --> (as you said line 140)
> <TABLE ID='layout' CELLSPACING='0' CELLPADDING='0' STYLE='width:100%;height:100%'>
> <%
> if( attributeBean.isShowTitle( ) )
> {%>
> <TR>
> <TD COLSPAN='2'>
> <TABLE BORDER=0 CELLSPACING="0" CELLPADDING="1px" WIDTH="100%" align="center">
> <TR align="center">
> <TD> <img src="D:\new\Tomcat 6.0\webapps\birt\webcontent\birt\images\LOGO1.jpg" style="height: 49px; width: 132px; "></TD>
> <TD style="color:blue; font-size: 100"><B>Delivery Dashboard</B></TD>
> <TD><img src="D:\new\Tomcat 6.0\webapps\birt\webcontent\birt\images\imagesC.jpg" style="height: 49px; width: 132px; "></TD>
> </TR></TABLE></TD></TR>
>
> Here is the snapshot of the report (viewed on tomcat server)
>
>
>
> Waiting for your reply eagerly.
>
> Thanks and Regards
> swapnil
Re: Customising BIRT Sample Viewer [message #878863 is a reply to message #878631] Wed, 30 May 2012 04:56 Go to previous messageGo to next message
swapnil jagadale is currently offline swapnil jagadaleFriend
Messages: 3
Registered: May 2012
Junior Member
Hi Jason,

Hay.... Thanks. It worked.

But the problem of the font size continues. No matter what font size I use in
code the web page displays the same tiny heading as "Delivery Dashboard".
How can I increase the font size?

<TD> <img src="birt\images\LOGO1.jpg" style="height: 49px; width: 132px; "></TD>
<TD style="color:blue; font-size: 100"><B>Delivery Dashboard</B></TD>
<TD> <img src="birt\images\imagesC.jpg" style="height: 49px; width: 132px; "></TD>


Thanks and Regards

Swapnil
Re: Customising BIRT Sample Viewer [message #879160 is a reply to message #878863] Wed, 30 May 2012 16:20 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

TryL

<TD style="color:blue; font-size: 20pt"><b>Delivery Dashboard</b></TD>

Jason

On 5/30/2012 12:56 AM, swapnil jagadale wrote:
> Hi Jason,
>
> Hay.... Thanks. It worked.
>
> But the problem of the font size continues. No matter what font size I
> use in code the web page displays the same tiny heading as "Delivery
> Dashboard".
> How can I increase the font size?
>
> <TD> <img src="birt\images\LOGO1.jpg" style="height: 49px; width: 132px;
> "></TD>
> <TD style="color:blue; font-size: 100"><B>Delivery Dashboard</B></TD>
> <TD> <img src="birt\images\imagesC.jpg" style="height: 49px; width:
> 132px; "></TD>
>
>
> Thanks and Regards
>
> Swapnil
Previous Topic:Avoid aggregation for y-axis
Next Topic:Stacked Bar Chart in 2.5.2 -- need to set series visibility based on other data column value
Goto Forum:
  


Current Time: Sat Apr 20 03:07:16 GMT 2024

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

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

Back to the top