Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
作者 一个关于JasperReport的问题
Leonardo





发贴: 9
于 2005-12-27 16:37 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
最近接触到到jasperReport,感觉入手很难,而且,中文的资料也很少,希望用过这个咚咚的高手给点意见。入手时出现了编译.jrxml的问题。
部分源代码如下:
  public boolean compile(HttpServletRequest request,
      HttpServletResponse response) throws Exception{
    
    boolean ret = false;
    JRProperties.setProperty(
      JRProperties.COMPILER_CLASSPATH,
      "E:\\eclipse-SDK-3.1-win32\\eclipse\\workspace\\JR\\web\\WEB-INF\\lib\\jasperreports-1.1.1.jar" +
      System.getProperty("path.separator") +
      "E:\\eclipse-SDK-3.1-win32\\eclipse\\workspace\\JR\\web\\WEB-INF\\classes\\WEB-INF\\classes\\");

    JRProperties.setProperty(JRProperties.COMPILER_TEMP_DIR, "E:\\eclipse-SDK-3.1-win32\\eclipse\\workspace\\JR\\web\\reports\\reports\\");
    try
    {
      JasperCompileManager.compileReportToFile("E:\\eclipse-SDK-3.1-win32\\eclipse\\workspace\\JR\\web\\reports\\FirstReport.jrxml");      ret = true;
    }
    catch (JRException e) {
      response.setContentType("text\\html");
      PrintWriter out = response.getWriter();
......

}




话题树型展开
人气 标题 作者 字数 发贴时间
2369 一个关于JasperReport的问题 Leonardo 981 2005-12-27 16:37
1842 Re:一个关于JasperReport的问题 Leonardo 13 2005-12-28 11:57
1868 Re:一个关于JasperReport的问题 Leonardo 25 2005-12-28 12:02
2002 Re:一个关于JasperReport的问题 Leonardo 8 2005-12-29 17:41

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923