免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1351 | 回复: 0
打印 上一主题 下一主题

请教在JbuilderX中使用ReportViewer出现的问题!急! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-11-08 17:18 |只看该作者 |倒序浏览
我用Crystal Reports9 做了一个名为DeviceReport_1.rpt的报表,然后用JBuilderX做了一个JSP页面,在JSP页面中用JBuilderX自带的CrystalReportViewer对报表进行浏览打印刷新等操作。我做报表时用了Oracle数据库作为数据源,服务名为:SEC_192.128.1.9  用户为:system  密码为:manager 。

我的JSP源代码为:
<%@ page contentType="text/html; charset=GBK" %>;
<%@ page errorPage="ReportView_error.jsp" %>;
<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %>;
<html>;
<head>;
<title>;
ReportView
</title>;
</head>;
<jsp:useBean id="reportViewBeanId" scope="session" class="report2.ReportViewBean" />;
<jsp:setProperty name="reportViewBeanId" property="*" />;
<body bgcolor="#ffffff">;
<h1>;
大家一起做报表!
</h1>;
<crviewer:viewer viewerName="1" reportSourceVar="_1" reportSourceType="reportingComponent" top="100" isOwnPage="true" displayToolbarExportButton="true" displayToolbarPrintButton="true" displayToolbarRefreshButton="true" displayToolbarFindButton="true" displayToolbarCrystalLogo="false" >;
<crviewer:report reportName="crystalreportviewers10/Report/DeviceReport_1.rpt" />;
</crviewer:viewer>;
</body>;
</html>;

编译能通过,但是在IE中点击CrystalReportViewer的ToolBar上的refresh按钮时IE中却出现了下列提示:
com.crystaldecisions.report.web.viewer.CrystalReportViewer          
Error finding JNDI name (SEC_192.128.1.9)

    而且将其报表导出为pdf文件时,打开pdf文件时会有“正自动更新”的提示出现,然后pdf文件的内容消失掉。
    我对JNDI了解不多,我的想法是不是要用JNDI的函数将服务名加进去,但具体如何做也不太清楚,请大家帮帮忙,多谢了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP