Java 取得 request 的完整根網址:
URL root = new URL(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort());
Java 取得 request 的完整根網址:
URL root = new URL(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort());
Refer: http://community.jaspersoft.com/ireport-designer/issues/3593
iReport 5.6.0 不支援JRE8,需要用 JRE 7執行,用JRE8執行會開不起來,查log可以看到 Exception:
java.lang.IllegalStateException: java.lang.IllegalAccessException: Class org.openide.util.WeakListenerImpl$ProxyListener can not access a member of class org.openide.filesystems.$Proxy0 with modifiers "public"
Refer: http://stackoverflow.com/questions/11686332/nullpx-in-jasperreport-html-view
使用 iReport 時,若沒有特別設定,在使用匯出HTML時,預設可能會看到「X」的圖示:
若要關閉這個圖示,可在程式中設定如下:
JRHtmlExporter htmlExporter = new JRHtmlExporter();
htmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);