birt报表教程之与已有web应用集成
集成到已有web应用
1.下载birt-runtime-2_2_0运行包。如下:
Download from:Eclipse downloads-mirror selection
2.下载解压包完整目录如下:
3、将WebViewerExample\WEB-INF\目录下面的lib、platform、tlds、
l、server-config.wsdd、viewer.properties拷贝到要集成的目标WEB应用的\WEB-INF\目录下。如下图:
4、将WebViewerExample\webcontent文件夹拷贝到要集成的目标WEB应用
的根目录下。
5、在l文件中添加如下信息。
<display-name>Eclipse BIRT Report Viewer</display-name>
<!--Default locale setting-->
<context-param>
<param-name>BIRT_VIEWER_LOCALE</param-name>
<param-value>en-US</param-value>
</context-param>
<!--Report resources directory for preview.Default to${birt home} -->
<context-param>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value></param-value>
</context-param>
<!--The generated document files directory.Default to${birt home}/documents-->
<context-param>
<param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
<param-value></param-value>
</context-param>param name
<!--If usr can only access the reprot resources under working folder. Default is false-->
<context-param>
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
<param-value>false</param-value>
</context-param>
<!--Output image/chart directory.Default to${birt
home}/report/images-->
<context-param>
<param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
<param-value></param-value>
</context-param>
<!--Engine log directory.Default to${birt home}/logs-->
<context-param>
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
<param-value></param-value>
</context-param>
<!--Report engine log level-->
<context-param>
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>WARNING</param-value>
</context-param>
<!--Directory to store all birt report script libraries(JARs). Default to${birt home}/scriptlib-->
<context-param>
<param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
<param-value></param-value>
</context-param>
<!--Resource location directory.Default to${birt home}-->
<context-param>
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value></param-value>
</context-param>
<!--Preview report max rows limited.-->
<context-param>
<param-name>BIRT_VIEWER_MAX_ROWS</param-name>
<param-value></param-value>
</context-param>
<!--If always overwrite generated document file.For runtime,efalult to true-->
<context-param>
<param-name>BIRT_OVERWRITE_DOCUMENT</param-name>
<param-value>true</param-value>
</context-param>
<!--Define BIRT viewer configuration file-->
<context-param>
<param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
<param-value>WEB-INF/viewer.properties</param-value> </context-param>
<!--If turn on the function that supports print on the server side. Default to on.-->
<context-param>
<param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
<param-value>ON</param-value>
</context-param>
<!--If force optimized HTML output.Default to true-->
<context-param>
<param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
<param-value>true</param-value>
</context-param>
<!--Viewer Servlet Context Listener-->
<listener>
<listener-class&port.listener.ViewerServletContext Listener</listener-class>
</listener>
<!--Viewer HttpSession Listener-->
<listener>
<listener-class&port.listener.ViewerHttpSessionLis tener</listener-class>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。