2013-11-27 55 views
0

ubntu 12.04設置超鏈接到iReport的

我想創建超鏈接使用Jaspersoft iReport Designer 5.1.0

兩個報告: - 報告1 報告2

報告1套超鏈接到名爲報告2

步驟: -

 Take on text element ex : ${ID} 

     Right Click Hyperlink 

     Target : self  type : Report Execution 

     Link Parameter :- _report   "/path Report2" 

在預覽點擊標識總比什麼都沒有發生,報告2不叫

併發生以下錯誤: -

Compiling to file... /home/mansi/Tweet_Report/report5.jasper Compilation running time: 174!

 Filling report...

 Locale: English (India)  Time zone: Default Report fill running time: 44! (pages generated: 1)  Exporting Text (iReport) to file... /home/abc/R1_Report/Report1.txt!

Error exporting print... net.sf.jasperreports.engine.JRPrintText.getTextAlignment()B

java.lang.NoSuchMethodError: net.sf.jasperreports.engine.JRPrintText.getTextAlignment()B

    at com.jaspersoft.jrx.export.JRTxtExporter.layoutGrid(JRTxtExporter.java:419)     at com.jaspersoft.jrx.export.JRTxtExporter.exportPage(JRTxtExporter.java:300)     at com.jaspersoft.jrx.export.JRTxtExporter.exportReportToWriter(JRTxtExporter.java:289)     at com.jaspersoft.jrx.export.JRTxtExporter.exportReport(JRTxtExporter.java:257)     at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:1174)     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Export running time: 9! No external viewer specified for this type of print. Set it in the options frame!

請幫我解決了這個錯誤。

+0

報告2是否自行運行? – Lisa

+0

是的...報告2運行良好 – user2865749

+0

這個錯誤是否發生在iReport中? – Lisa

回答

0

http://community.jaspersoft.com/questions/803963/outputing-txt-file

它看起來像你必須設置字符高度和寬度。從我已鏈接到的頁面:

Go to Tools-->Options

Select Export Options tab --> Select Text from left pane

Set values for Character Width, Character Height, (The values I have set 7 and 13.9) Page width and Height.

Now try generating the report and it will work. Try setting different values to make it fit properly.

+0

我還爲頁面和字符設置了不同的高度和寬度,但仍發生同樣的錯誤。 – user2865749