JavaWorld@TW the best professional Java site in Taiwan sun training logo
      註冊 | 登入 | 全文檢索 | 排行榜  

» JavaWorld@TW » Java Tools  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:JasperReport 求救 [Re:hellojavas]
samson35460





發文: 1
積分: 0
於 2005-06-24 12:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
底下有一份 subreport 的使用介紹,還蠻詳細的..透過subreport的功能. 同一份report中不但可置入兩個以上的SQL,且SQL間很像還可透過Parameter相互引用

http://ireport.sourceforge.net/swf/Subreport_viewlet_swf.htm

Hope this helps.


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救(子報表該如何做) [Re:hellojavas]
Sunnie





發文: 1
積分: 0
於 2005-07-06 00:08 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
各位~
請問在JasperReport中的子報表該如何處理呢?
有那些設定…
如果有人處理過可否教我囉~萬分感謝!! ^^


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
hellojavas





發文: 124
積分: 1
於 2005-07-11 10:08 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我又有問題啦…
因為在讀出的資料中…
必需將部分欄位進行處理。
比如序號的部份,
要以十六進制顯示,以免過長,
可是我經由…ResultSet 讀出來的資料,
似乎沒辦法修改…
另外,還有個問題,
在 iReport 中有條碼的元件,
有人有用過嗎,
我在 iReport 中跑的出來,
但是…用 JBuilder 來跑時,
卻發生了…
1
2
net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : image_2
  Source text : it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(9,$F{BARCODE},true,false)

請各位幫幫忙了…謝謝…

樓上那位…因為…沒弄過…子報表…
所以…無法幫你的忙…拍謝…


vote up 0 vote down
hellojavas edited on 2005-07-11 11:53
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
stevewan





發文: 53
積分: 0
於 2005-07-12 11:00 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Dear hellojavas,
你指的無法做修改,是指在iReport裡面無法作一些轉型或是計算嗎?
我有做過將JAXB物件傳進iReport中,在iReport做一些轉型或是轉換的動作,不知道這樣的動作是不是你要的?我是採用類似下列的作法
1
((com.mycompany.AAA)$F{param1})

主要是將傳入的物件轉換成Java Class,再用這個Java Class來做處理,或許你可以看看iReport轉換過程中的.java檔,也許可以提供你解決問題的靈感^^
Barcode?沒碰過,不過看你那個Error Message,應該是找不到圖檔吧.....


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
hellojavas





發文: 124
積分: 1
於 2005-07-21 12:04 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的 Barcode 可經由 程式 印出了 ^^
原來又是 jar 檔,沒包到。
另外,我是要改寫 ResultSet 的內容。
因為無法直接由 sql 處理 進制轉換問題,
所以,希望能在取出資料後,
改寫 ResultSet 內容。
不過卻遇到了 ResultSet 似乎是 Readonly 的狀況…


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
aronzhou





發文: 5
積分: 0
於 2005-07-24 10:41 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
请教stevewan 大哥
我的数据库中字段太多,在一张报表中放不下,不知道该怎么办??
我想把这些字段放到两张报表中,但又不知道能不能将这两张报表合成一个pdf文档,因为客户总不想打印一份pdf文档而点击两次
烦了好长时间了 在这里先谢谢了


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
stevewan





發文: 53
積分: 0
於 2005-07-25 03:00 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Dear aronhou,
由於不知道你的報表是做成怎樣的格式,以及資料量的大小,所以只能建議你試試用Subreport的方式來處理.或者你可以看看JasperReport的範例,也許會找到解決問題的靈感^^


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
aronzhou





發文: 5
積分: 0
於 2005-07-25 15:09 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
就是我要设计一个文档,数据是从数据库中提取的,每次读取一个数据库记录,就会生成一个五张的pdf文档,不过好像jasperreport没有提供分页设计一份报表的功能,如果我分为五张报表去设计的话,不知道有没有什么功能将这五份报表合成一份pdf文档, 不知道老大有没有好的建议或着什么好的方法 这里先谢了,前面的一些讨论也给了我不少帮助

vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
aronzhou





發文: 5
積分: 0
於 2005-07-25 16:31 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
请教stevewan 老大
我能不能用生成一个包含几页的报表,然后在这几页里每页包含一个子报表可能会解决我得问题,,但对subrepoert不熟,,请老大给建议一下能不能行


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
fj_opensky





發文: 1
積分: 0
於 2005-07-25 16:52 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
dear hellojavas:

thanks for you pdf tutorials. give me much help.


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
stevewan





發文: 53
積分: 0
於 2005-07-26 01:17 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Dear aronzhou,
Jasper Report並沒有提供強制分頁的功能,所以也許你可以採用下列的方法來做,如果確定每次產生報表都只會是要產生五張PDF的話,你可以在一份report中,設置四個A4 size的Group Band,將需要的資料分佈在這四個Group Band與Detail Band中,如此一來就會是五張PDF了.這樣的方法比較死板,不過應該可以符合你的需求.


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
aronzhou





發文: 5
積分: 0
於 2005-07-26 09:09 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
thanks stevewan 老大,I will try

vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
hellojavas





發文: 124
積分: 1
於 2005-07-26 10:01 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Dear all :
我又遇到問題啦…在 iReport 的條碼裡,只有六種 scaner 掃的出來。有三種是高的,三種比較瘦。但高的條碼,好像不接受 $F{BARCODE} 大括符 的符號,在裡面就沒辦法與資料庫讀出的資料進行連結了。但瘦的條碼,是可讀出,但是太瘦小,又挶限報表的版面,無法給予條碼很大的空間,因此產生出的條碼,更小也更難掃描。不知有沒有人有解決過類似的問題 !!

注:我目前使用的 Codabar 的條碼種類。
而我手邊的 Barcode Scaner 只吃 2of7 , Codabar , Code128 , Code128A , Code128C 及 UPCA 這六種。但 2of7 , Code128C 及 UPCA 皆會因 {} 符號而掛掉,結果,只有 其餘三種可使用,但條碼真的太小了,我自已掃都覺得有點慢,希望大家幫幫忙。並附上測試的 Barcode ,可在 Properties 裡設定條碼種類,不知道大家會不會遇到我所碰見的問題。

謝謝大家。

NORTH.jrxml (4.0k)


vote up 0 vote down
hellojavas edited on 2005-07-26 10:03
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
kjdf





發文: 11
積分: 0
於 2005-07-26 11:37 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
hellojavas wrote:
Dear all :
我又遇到問題啦…在 iReport 的條碼裡,只有六種 scaner 掃的出來。有三種是高的,三種比較瘦。但高的條碼,好像不接受 $F{BARCODE} 大括符 的符號,在裡面就沒辦法與資料庫讀出的資料進行連結了。但瘦的條碼,是可讀出,但是太瘦小,又挶限報表的版面,無法給予條碼很大的空間,因此產生出的條碼,更小也更難掃描。不知有沒有人有解決過類似的問題 !!

注:我目前使用的 Codabar 的條碼種類。
而我手邊的 Barcode Scaner 只吃 2of7 , Codabar , Code128 , Code128A , Code128C 及 UPCA 這六種。但 2of7 , Code128C 及 UPCA 皆會因 {} 符號而掛掉,結果,只有 其餘三種可使用,但條碼真的太小了,我自已掃都覺得有點慢,希望大家幫幫忙。並附上測試的 Barcode ,可在 Properties 裡設定條碼種類,不知道大家會不會遇到我所碰見的問題。

謝謝大家。


雖然我沒用過jReport,
你說的條碼太小是指長的話, 可以直接拉元件大小好像會自動放大
如果是指寬的話, 你可以再多拉幾個barcode元件, 但show text屬性拿掉, 再併排在一起就可以啦, 希望有幫到你Big Smile


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
aronzhou





發文: 5
積分: 0
於 2005-08-14 18:55 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
请问各位老大:
我的数据库里有clob字段,我怎么提取出来并把他转换成字符串显示出来啊?
clob类型是byte【】的,用new String(byte【】)显示,ireport有这个操作么?


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
jasperxu





發文: 1
積分: 0
於 2005-08-19 10:47 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的Jasper可以在html里输出,但是用到PDF输出就不行.我的程式代吗如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%@ page import="net.sf.jasperreports.engine.*" %>
<%@ page import="java.util.*" %>
<%@page import="java.io.*"%>
<%@page import="java.sql.*"%>
<%
      
      Connection conn = null;
    String dbName = "eduinfomanager";
    String dbuser = "leon";
    String dbpasswd = "123456";
    String dbserver = "192.168.12.166";
    String url = "jdbc:microsoft:sqlserver://" + dbserver + ":1433;DatabaseName=" +
      dbName;
      System.out.println("ssssssssssssssssss");
  File reportFile = new File(application.getRealPath("/reports/reply_report.jasper"));
    if (!reportFile.exists())
    throw new JRRuntimeException("File WebappReport.jasper not found. The report design must be compiled first.");
 
  Map parameters = new HashMap();
  
  parameters.put("id", "00001");
        System.out.println("fffffffffffffffffffff");
  
  try {
      Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").
          newInstance();
      conn = DriverManager.getConnection(url, dbuser, dbpasswd);
    }
    catch (SQLException sex) {
      sex.printStackTrace();
    }
    catch (ClassNotFoundException cex) {
      cex.printStackTrace();
    }
    catch (Exception se) {
      se.printStackTrace();
    }
            System.out.println("ccccccccccccccccccccc");
  
  byte[] bytes = 
    JasperRunManager.runReportToPdf(
      reportFile.getPath(), 
      parameters, 
      conn
      );
        System.out.println("eeeeeeeeeeeeeeeeeeeeeee");
 
  response.setContentType("application/pdf");
  System.out.println("gggggggggggggggggggggggggggggg");
  response.setContentLength(bytes.length);
  ServletOutputStream ouputStream = response.getOutputStream();
  ouputStream.write(bytes, 0, bytes.length);
  ouputStream.flush();
  ouputStream.close();
%>


pdf.jsp (1.71k)


vote up 0 vote down
browser edited on 2005-08-19 10:50
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
小桃子





發文: 115
積分: 0
於 2005-08-29 17:27 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有一個問題想要請教一下..?

我照著之前那個教學的PDF的作法,單單用IReport作報表..轉成PDF檔都OK...

但是用到JBuilderX中後..就會出現錯誤...
出現錯誤的是這一行
1
2
3
4
5
6
7
8
9
10
Connection conn = this.createConnection(); //建立資料庫連線
  try {
  Statement stm = conn.createStatement();
  ResultSet rs = stm.executeQuery(sql);
  fileName = "C:\\iReport-0.4.1\\test.jasper";
  JasperFillManager.fillReportToFile(fileName,parameters,new JRResultSetDataSource(rs));   //這一行出錯
  fileName = "C:\\iReport-0.4.1\\test.jrprint";
  JasperExportManager.exportReportToPdfFile(fileName);
  }
 

錯誤訊息是:"java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment"

我找不到相關的錯誤資料..你各位大大指教....


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
austinChiang





發文: 5
積分: 0
於 2005-08-30 10:53 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
dear all:
想請教我要在iReport的介面上,把detail算出來的金額加總起來放在summary或lastpageFooter,要怎麼處理?困住了= =..謝謝


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:aronzhou]
stevewan





發文: 53
積分: 0
於 2005-08-30 13:16 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
aronzhou wrote:
请问各位老大:
我的数据库里有clob字段,我怎么提取出来并把他转换成字符串显示出来啊?
clob类型是byte【】的,用new String(byte【】)显示,ireport有这个操作么?

iReport好像沒有直接對應到clob型別的方法,你應該把clob的資料,轉成byte[]的物件後.再以Object型態的方式傳進JasperReport裡面做處理才是,new String(byte[]),是的,可以這樣做.


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:austinChiang]
stevewan





發文: 53
積分: 0
於 2005-08-30 13:25 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
austinChiang wrote:
dear all:
想請教我要在iReport的介面上,把detail算出來的金額加總起來放在summary或lastpageFooter,要怎麼處理?困住了= =..謝謝

請參考hellojava的document中第20頁裡,自行定義新的變數的方法....


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:stevewan]
austinChiang





發文: 5
積分: 0
於 2005-08-30 13:51 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
stevewan wrote:
請參考hellojava的document中第20頁裡,自行定義新的變數的方法....

sorry請問一下hellojava的document放在哪裡?謝謝~


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:austinChiang]
stevewan





發文: 53
積分: 0
於 2005-08-30 19:37 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
austinChiang wrote:
sorry請問一下hellojava的document放在哪裡?謝謝~

請看本討論串並搜尋iReportTeach.pdf


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
tyujeng





發文: 2
積分: 0
於 2005-09-02 15:23 user profilesend a private message to usersend email to tyujengreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
java.lang.NoClassDefFoundError: it/businesslogic/ireport/barcode/BcImage
  at SAR05.evaluate(SAR05:308)
  at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:461)
  at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:389)
  at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:349)
  at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:332)
  at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooter(JRVerticalFiller.java:640)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooters(JRVerticalFiller.java:608)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:240)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:125)
  at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)
  at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)
  at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)
  at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
  at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163)
  at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:124)
  at tw.net.tcc.pos.report.ReportProviderServlet.doPost(ReportProviderServlet.java:143)
  at tw.net.tcc.pos.report.ReportProviderServlet.doGet(ReportProviderServlet.java:205)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
  at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
  at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
  at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
  at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

NESTED BY :
net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : image_1
  Source text : it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(13,"0815",false,false)
  at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:472)
  at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:389)
  at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:349)
  at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:332)
  at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooter(JRVerticalFiller.java:640)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooters(JRVerticalFiller.java:608)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:240)
  at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:125)
  at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)
  at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)
  at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)
  at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
  at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163)
  at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:124)
  at tw.net.tcc.pos.report.ReportProviderServlet.doPost(ReportProviderServlet.java:143)
  at tw.net.tcc.pos.report.ReportProviderServlet.doGet(ReportProviderServlet.java:205)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
  at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
  at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
  at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
  at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.NoClassDefFoundError: it/businesslogic/ireport/barcode/BcImage
  at SAR05.evaluate(SAR05:308)
  at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:461)
  ... 29 more

我是產生用iReport做報表,compile .jasper檔後,由程式去抓這個.jasper跟資料檔結合,但是會出現這樣問題,也是因為哪一個jar檔沒import進lib嗎??還是有其它原因呢??


vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
tyujeng





發文: 2
積分: 0
於 2005-09-02 16:43 user profilesend a private message to usersend email to tyujengreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問是哪一個jar檔沒包到呢??

vote up 0 vote down
reply to postreply to post
作者 Re:JasperReport 求救 [Re:hellojavas]
cutebig





發文: 1
積分: 0
於 2005-09-16 16:04 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
感謝大大提供這份文件,讓我對iReport有一番徹底的認識,感動ㄋㄟ!!Big Smile

vote up 0 vote down
reply to postreply to post
go to first page go to previous page  1   2   3  go to next page go to last page

» JavaWorld@TW »  Java Tools

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JavaWorld@TW


Powered by Powerful JuteForum® Version Jute 1.5.8
Copyright© 2002-2003 Rainman Zhu,Zua,Netboy,Scott. All Rights Reserved.