|
|
|
Re: Does BIRT Report Viewer have zoom in/out function [message #366659 is a reply to message #366644] |
Mon, 19 January 2009 19:40   |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Gavin,
You may be able to modify the viewer plugins webcontent directory, which
contains css, js, and jsp files to create to the viewer to add the
scroll bars. You can always use the visibility property to hide the
text element containing the code for every output except html.
Jason
gavin wrote:
> Jason,
> Thanks for you reply,I try the code,but the scroll is undisplay,how
> can i do?
> I want to add the code when generate html from the .rptdesign file,would
> you give me some advise?
>
> thanks again.
>
> Gavin
>
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Does BIRT Report Viewer have zoom in/out function [message #657150 is a reply to message #656896] |
Tue, 01 March 2011 13:09   |
Eclipse User |
|
|
|
Hi,
I've done it using css3 . I´ve tested in FF 3.6, Chrome 9.059 and Opera 11.01,
I don't have IE9 for testing, but maybe I will try using the Microsoft's Matrix Filter for compatibility issues.
Here is the code to insert in the ToolbarFragment.jsp
the script (just before the toolbar) is
<script language="javascript">
var zoomData = [
{scl: ".4", tra: "-76%"},
{scl: ".5", tra: "-50%" },
{scl: ".6", tra: "-33%" },
{scl: ".7", tra: "-21.5%" },
{scl: ".8", tra: "-12.5%" },
{scl: ".9", tra: "-5.5%" },
{scl: "1.0", tra: "0%" },
{scl: "1.1", tra: "4.5%" },
{scl: "1.2", tra: "8.5%" },
{scl: "1.3", tra: "11.5%" }
];
function zoomX()
{
var x = document.getElementById("Document");
var lst = document.getElementById("ZL");
var zl = lst.options[lst.selectedIndex].value;
var tra = "scale(" + zoomData[zl].scl + ") translate(" + zoomData[zl].tra + "," + zoomData[zl].tra + ")";
x.style.OperaTransform = tra;
x.style.msTransform = tra;
x.style.MozTransform = tra;
x.style.webkitTransform = tra;
}
</script>
<TD COLSPAN='2'>
<DIV ID="toolbar">
and the control after the print button
<TD WIDTH="6px"/>
<TD WIDTH="45px">
<SELECT ID="ZL" Name="ZoomLevel" onChange="zoomX()">
<OPTION Value="1">50%</OPTION>
<OPTION Value="2">60%</OPTION>
<OPTION Value="3">70%</OPTION>
<OPTION Value="4">80%</OPTION>
<OPTION Value="5">90%</OPTION>
<OPTION Value="6" selected>100%</OPTION>
<OPTION Value="7">110%</OPTION>
<OPTION Value="8">120%</OPTION>
<OPTION Value="9">130%</OPTION>
</SELECT>
</TD>
Best regards
______________
Edwin
|
|
|
|
Powered by
FUDForum. Page generated in 0.33655 seconds