Create a new HTML file and save it as MyToolbar.html. Place it in the same directory as the other files. You may completely customize this page by adding links graphics or other web content, and use these objects to control the report viewer. Bear in mind two things when using functions in the API:
An example of a custom Toolbar page follows.
<META content="text/html; charset=unicode" http
<SCRIPT src="htmlviewer.js"></SCRIPT>
<SCRIPT language="Javascript">
if (currentPage+1 > numPages && numPages != 0)
alert ("This is the last page");
parent.gotoPage (currentPage);
alert("This is the first page");
parent.gotoPage (currentPage);
function onReportPageLoad ( PageN, TPageN, brch, drillName, subrpt )
<A href="javascript:Prev();" onMouseClick="Prev();"><< Previous</a> |
<A href="javascript:Next();" onMouseClick="Next();"> Next >> </a>
This is all you need to create your own viewer. For a description of the functions and features in the HTML Frame API, see DHTML with Frames.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |