<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Membuat MasterDetail Report dengan iReport</title>
	<atom:link href="http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/feed/" rel="self" type="application/rss+xml" />
	<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/</link>
	<description>Human Knowledge Belongs To The World</description>
	<lastBuildDate>Wed, 16 May 2012 15:10:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Martinus Ady H</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-25/#comment-8144</link>
		<dc:creator>Martinus Ady H</dc:creator>
		<pubDate>Thu, 10 May 2012 06:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-8144</guid>
		<description>BIsa pastein potongin kodenya ??</description>
		<content:encoded><![CDATA[<p>BIsa pastein potongin kodenya ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: acha</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-25/#comment-8143</link>
		<dc:creator>acha</dc:creator>
		<pubDate>Thu, 10 May 2012 04:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-8143</guid>
		<description>maaf maz,.. mau tanya,.. 
pas saya run,.. tapi malah g nyambung ke DB nya,.. itu gimana y maz?..
mohon bantuannya :)</description>
		<content:encoded><![CDATA[<p>maaf maz,.. mau tanya,..<br />
pas saya run,.. tapi malah g nyambung ke DB nya,.. itu gimana y maz?..<br />
mohon bantuannya <img src='http://martinusadyh.web.id/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martinus Ady H</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-25/#comment-8002</link>
		<dc:creator>Martinus Ady H</dc:creator>
		<pubDate>Sat, 24 Mar 2012 04:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-8002</guid>
		<description>Ada pesan error ?</description>
		<content:encoded><![CDATA[<p>Ada pesan error ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kahfi</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-25/#comment-8001</link>
		<dc:creator>kahfi</dc:creator>
		<pubDate>Sat, 24 Mar 2012 03:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-8001</guid>
		<description>Pak saya udah coba buat report seperti ini, tapi masalahnya ketika file ini sudah di build dan jadi file .jar malah ngga bisa running reportnya.. kira2 ada solusinya pak? 
terimakasih sebelumnya</description>
		<content:encoded><![CDATA[<p>Pak saya udah coba buat report seperti ini, tapi masalahnya ketika file ini sudah di build dan jadi file .jar malah ngga bisa running reportnya.. kira2 ada solusinya pak?<br />
terimakasih sebelumnya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ichsan</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-25/#comment-7615</link>
		<dc:creator>ichsan</dc:creator>
		<pubDate>Fri, 20 Jan 2012 18:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-7615</guid>
		<description>mas kalau di report mau nambahin nama pejabat penanda tangan n nip gmn? misal report data golongan pegawai trs bawahnya ada nama pejabat penanda tangan n nip trs misal data golongan di databasenya ada tabel ndiri trs ada tabel lg tb_penanda tangan isinya nip sama nama, nah mau nampilin data dari 2 tabel itu gmn?</description>
		<content:encoded><![CDATA[<p>mas kalau di report mau nambahin nama pejabat penanda tangan n nip gmn? misal report data golongan pegawai trs bawahnya ada nama pejabat penanda tangan n nip trs misal data golongan di databasenya ada tabel ndiri trs ada tabel lg tb_penanda tangan isinya nip sama nama, nah mau nampilin data dari 2 tabel itu gmn?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bejo</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-6291</link>
		<dc:creator>bejo</dc:creator>
		<pubDate>Wed, 07 Sep 2011 09:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-6291</guid>
		<description>sy juga ngalamin sama kyk gitu
waktu di build jadi jar
reportnya ga muncul..</description>
		<content:encoded><![CDATA[<p>sy juga ngalamin sama kyk gitu<br />
waktu di build jadi jar<br />
reportnya ga muncul..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amhy Ma'asy</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-5447</link>
		<dc:creator>Amhy Ma'asy</dc:creator>
		<pubDate>Sun, 31 Jul 2011 17:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-5447</guid>
		<description>Mas Martinus kok email sy gk d bls lg mas? :(</description>
		<content:encoded><![CDATA[<p>Mas Martinus kok email sy gk d bls lg mas? <img src='http://martinusadyh.web.id/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eko</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-5418</link>
		<dc:creator>eko</dc:creator>
		<pubDate>Sat, 30 Jul 2011 05:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-5418</guid>
		<description>salam kenal.

mas, gmn caranya menampilkan menuBar berdasarkan user login ? 

terima kasih sebelumnya atas bantuannya.</description>
		<content:encoded><![CDATA[<p>salam kenal.</p>
<p>mas, gmn caranya menampilkan menuBar berdasarkan user login ? </p>
<p>terima kasih sebelumnya atas bantuannya.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amhy Ma'asy</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-5375</link>
		<dc:creator>Amhy Ma'asy</dc:creator>
		<pubDate>Thu, 28 Jul 2011 07:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-5375</guid>
		<description>mas di jawab donk pertanyaan d atas :(</description>
		<content:encoded><![CDATA[<p>mas di jawab donk pertanyaan d atas <img src='http://martinusadyh.web.id/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amhy Ma'asy</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-5353</link>
		<dc:creator>Amhy Ma'asy</dc:creator>
		<pubDate>Wed, 27 Jul 2011 09:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-5353</guid>
		<description>mas mau nanya, sy coba ikuti tulisan ini klo di run melalui netbeans &amp; ireport smua reportnya berjalan lancar tapi ketika
saya run lewat file jar nya lewat cmd kok ada exception sprti ini muncul 
Report Can&#039;t view because : net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0 ??
*nb : saya ubah kode nya di bagian menentukan fullpath nya spya file reportnya di temukan, kodenya seperti di bawah ini

this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            Properties systemProp = System.getProperties();
            p2 = loadProperties(PROP_FILE);
            
            // Ambil current dir
            String currentDir = systemProp.getProperty(&quot;user.dir&quot;);
     
            File dir = new File(currentDir);
            String reportName = &quot;MasterFormulir.jrxml&quot;;
            String reportDirName = &quot;report&quot;;
     
            File fileRpt;
            String fullPath = &quot;&quot;;
            if (dir.isDirectory()) {
                String[] isiDir = dir.list();
    //            for (int i = 0; i &lt; isiDir.length; i++) {
    //                fileRpt = new File(currentDir + File.separatorChar + isiDir[i] + File.separatorChar +
    //                        reportDirName + File.separatorChar + reportName);
                    
                      fileRpt = new File(currentDir + File.separatorChar +
                            reportDirName + File.separatorChar + reportName);
     
                    if (fileRpt.isFile()) { // Cek apakah file MasterFormulir.jrxml ada
                        fullPath = fileRpt.toString();
                        System.out.println(&quot;Found Report File at : &quot; + fullPath);
                    } // end if
    //            } // end for i
            } // end if
     
            // Ambil Direktori tempat file RptMaster.jrxml berada
            String[] subRptDir = fullPath.split(reportName);
            String reportDir = subRptDir[0];
            System.out.println(&quot;Report Directory at : &quot; + reportDir);
            
            
            // Ambil Kode Kategori
            final String nip = txtCetakNip.getText();
            Connection con = null;
            try {
                String jdbcDriver = &quot;com.mysql.jdbc.Driver&quot;;
                Class.forName(jdbcDriver);
                String url = &quot;jdbc:mysql://&quot;+p2.getProperty(&quot;Ip Server&quot;)+&quot;/db_simpeg&quot;;
                String user = &quot;admin&quot;;
                String pass = &quot;simpeg&quot;;
     
                con = (Connection) DriverManager.getConnection(url, user, pass);
                Statement stm = (Statement) con.createStatement();
     
                // Persiapkan parameter untuk Report
                Map parameters = new HashMap();
                parameters.put(&quot;nip&quot;, nip);
                parameters.put(&quot;SUBREPORT_DIR&quot;, reportDir);
     
                try {
                    JasperReport JRpt = JasperCompileManager.compileReport(fullPath);
                    JasperPrint JPrint = JasperFillManager.fillReport(JRpt, parameters, con);
                    JasperViewer.viewReport(JPrint, false);
                } catch (Exception rptexcpt) {
                    System.out.println(&quot;Report Can&#039;t view because : &quot; + rptexcpt);
                }
            } catch (Exception e) {
                //System.out.println(e);
                e.printStackTrace();
            }
            this.setCursor(Cursor.getDefaultCursor());</description>
		<content:encoded><![CDATA[<p>mas mau nanya, sy coba ikuti tulisan ini klo di run melalui netbeans &amp; ireport smua reportnya berjalan lancar tapi ketika<br />
saya run lewat file jar nya lewat cmd kok ada exception sprti ini muncul<br />
Report Can&#8217;t view because : net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0 ??<br />
*nb : saya ubah kode nya di bagian menentukan fullpath nya spya file reportnya di temukan, kodenya seperti di bawah ini</p>
<p>this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<br />
            Properties systemProp = System.getProperties();<br />
            p2 = loadProperties(PROP_FILE);</p>
<p>            // Ambil current dir<br />
            String currentDir = systemProp.getProperty(&#8220;user.dir&#8221;);</p>
<p>            File dir = new File(currentDir);<br />
            String reportName = &#8220;MasterFormulir.jrxml&#8221;;<br />
            String reportDirName = &#8220;report&#8221;;</p>
<p>            File fileRpt;<br />
            String fullPath = &#8220;&#8221;;<br />
            if (dir.isDirectory()) {<br />
                String[] isiDir = dir.list();<br />
    //            for (int i = 0; i &lt; isiDir.length; i++) {<br />
    //                fileRpt = new File(currentDir + File.separatorChar + isiDir[i] + File.separatorChar +<br />
    //                        reportDirName + File.separatorChar + reportName);</p>
<p>                      fileRpt = new File(currentDir + File.separatorChar +<br />
                            reportDirName + File.separatorChar + reportName);</p>
<p>                    if (fileRpt.isFile()) { // Cek apakah file MasterFormulir.jrxml ada<br />
                        fullPath = fileRpt.toString();<br />
                        System.out.println(&quot;Found Report File at : &quot; + fullPath);<br />
                    } // end if<br />
    //            } // end for i<br />
            } // end if</p>
<p>            // Ambil Direktori tempat file RptMaster.jrxml berada<br />
            String[] subRptDir = fullPath.split(reportName);<br />
            String reportDir = subRptDir[0];<br />
            System.out.println(&quot;Report Directory at : &quot; + reportDir);</p>
<p>            // Ambil Kode Kategori<br />
            final String nip = txtCetakNip.getText();<br />
            Connection con = null;<br />
            try {<br />
                String jdbcDriver = &quot;com.mysql.jdbc.Driver&quot;;<br />
                Class.forName(jdbcDriver);<br />
                String url = &quot;jdbc:mysql://&quot;+p2.getProperty(&quot;Ip Server&quot;)+&quot;/db_simpeg&quot;;<br />
                String user = &quot;admin&quot;;<br />
                String pass = &quot;simpeg&quot;;</p>
<p>                con = (Connection) DriverManager.getConnection(url, user, pass);<br />
                Statement stm = (Statement) con.createStatement();</p>
<p>                // Persiapkan parameter untuk Report<br />
                Map parameters = new HashMap();<br />
                parameters.put(&#8220;nip&#8221;, nip);<br />
                parameters.put(&#8220;SUBREPORT_DIR&#8221;, reportDir);</p>
<p>                try {<br />
                    JasperReport JRpt = JasperCompileManager.compileReport(fullPath);<br />
                    JasperPrint JPrint = JasperFillManager.fillReport(JRpt, parameters, con);<br />
                    JasperViewer.viewReport(JPrint, false);<br />
                } catch (Exception rptexcpt) {<br />
                    System.out.println(&#8220;Report Can&#8217;t view because : &#8221; + rptexcpt);<br />
                }<br />
            } catch (Exception e) {<br />
                //System.out.println(e);<br />
                e.printStackTrace();<br />
            }<br />
            this.setCursor(Cursor.getDefaultCursor());</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: regas</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-3095</link>
		<dc:creator>regas</dc:creator>
		<pubDate>Wed, 23 Mar 2011 13:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-3095</guid>
		<description>Ass....Slam kenal semua...sya punya problem...laporan yang dibuat pake ireport hanya tampil dari netbeans....jika project di Clean and Build trus dijalankan aplikasi.jar (yang ada dalam folder dist dari project) muncul pesan kira2 begini...ClassNotFoundException...Laporan Tidak dapat dicetak....Mohon pencerahannya....Tolong ya.....Pleasee....

ini kodenya....

void cetak() {
try {
//Lokasi File Jasper//
String nmFile=&quot;src/report/reportbarang.jasper&quot;;
String driver=&quot;com.mysql.jdbc.Driver&quot;;
String konek=&quot;jdbc:mysql://localhost/penjualan&quot;;
String user=&quot;root&quot;;
String password=&quot;&quot;;

HashMap parameter=new HashMap();
Class.forName(driver);
Connection conn=DriverManager.getConnection(konek,user,password);

File reportFile=new File(nmFile);
JasperReport jReport= (JasperReport)JRLoader.loadObject(reportFile.getPath());
JasperPrint jPrint=JasperFillManager.fillReport(jReport, parameter,conn);
JasperViewer.viewReport(jPrint,true);
JasperViewer.setDefaultLookAndFeelDecorated(true);
}
catch (Exception e) {
JOptionPane.showMessageDialog(null, &quot;Laporan Tidak Dapat Dicetak!\n&quot; +
e.getMessage(),&quot;Cetak Laporan&quot;, JOptionPane.ERROR_MESSAGE);
}
}</description>
		<content:encoded><![CDATA[<p>Ass&#8230;.Slam kenal semua&#8230;sya punya problem&#8230;laporan yang dibuat pake ireport hanya tampil dari netbeans&#8230;.jika project di Clean and Build trus dijalankan aplikasi.jar (yang ada dalam folder dist dari project) muncul pesan kira2 begini&#8230;ClassNotFoundException&#8230;Laporan Tidak dapat dicetak&#8230;.Mohon pencerahannya&#8230;.Tolong ya&#8230;..Pleasee&#8230;.</p>
<p>ini kodenya&#8230;.</p>
<p>void cetak() {<br />
try {<br />
//Lokasi File Jasper//<br />
String nmFile=&#8221;src/report/reportbarang.jasper&#8221;;<br />
String driver=&#8221;com.mysql.jdbc.Driver&#8221;;<br />
String konek=&#8221;jdbc:mysql://localhost/penjualan&#8221;;<br />
String user=&#8221;root&#8221;;<br />
String password=&#8221;";</p>
<p>HashMap parameter=new HashMap();<br />
Class.forName(driver);<br />
Connection conn=DriverManager.getConnection(konek,user,password);</p>
<p>File reportFile=new File(nmFile);<br />
JasperReport jReport= (JasperReport)JRLoader.loadObject(reportFile.getPath());<br />
JasperPrint jPrint=JasperFillManager.fillReport(jReport, parameter,conn);<br />
JasperViewer.viewReport(jPrint,true);<br />
JasperViewer.setDefaultLookAndFeelDecorated(true);<br />
}<br />
catch (Exception e) {<br />
JOptionPane.showMessageDialog(null, &#8220;Laporan Tidak Dapat Dicetak!\n&#8221; +<br />
e.getMessage(),&#8221;Cetak Laporan&#8221;, JOptionPane.ERROR_MESSAGE);<br />
}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ian</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-2891</link>
		<dc:creator>ian</dc:creator>
		<pubDate>Sat, 05 Mar 2011 05:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-2891</guid>
		<description>mas kalo di springMVC berbasis web gimana ya mas? saya sudah bisa memanggil reportnya menjadi .pdf, .xls, .html tapi reportnya masih kosong. saya menggunakan Hibernate JPA, dan Spring 3.02. saya masih bingung untuk mengisi record nya. dan disarankan menggunakan JRBeanCollection, tapi saya belum menemukan referensinya gi google. tanya di milis ga ada yang jawab.</description>
		<content:encoded><![CDATA[<p>mas kalo di springMVC berbasis web gimana ya mas? saya sudah bisa memanggil reportnya menjadi .pdf, .xls, .html tapi reportnya masih kosong. saya menggunakan Hibernate JPA, dan Spring 3.02. saya masih bingung untuk mengisi record nya. dan disarankan menggunakan JRBeanCollection, tapi saya belum menemukan referensinya gi google. tanya di milis ga ada yang jawab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daftar Link J2SE &#171;</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-24/#comment-2320</link>
		<dc:creator>Daftar Link J2SE &#171;</dc:creator>
		<pubDate>Tue, 18 Jan 2011 10:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-2320</guid>
		<description>[...] Membuat MasterDetail Report dengan iReport [...]</description>
		<content:encoded><![CDATA[<p>[...] Membuat MasterDetail Report dengan iReport [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martinus Ady H</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-23/#comment-2241</link>
		<dc:creator>Martinus Ady H</dc:creator>
		<pubDate>Sun, 09 Jan 2011 01:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-2241</guid>
		<description>@Doni: Coba baca tulisan report yg disini mas http://martinusadyh.web.id/2009/07/11/membuat-master-detail-report-menggunakan-jrbeanscollections-datasource/ Semoga udah ga pernah mengalami kejadian report not found :)</description>
		<content:encoded><![CDATA[<p>@Doni: Coba baca tulisan report yg disini mas <a href="http://martinusadyh.web.id/2009/07/11/membuat-master-detail-report-menggunakan-jrbeanscollections-datasource/" rel="nofollow">http://martinusadyh.web.id/2009/07/11/membuat-master-detail-report-menggunakan-jrbeanscollections-datasource/</a> Semoga udah ga pernah mengalami kejadian report not found <img src='http://martinusadyh.web.id/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doni</title>
		<link>http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/comment-page-23/#comment-2192</link>
		<dc:creator>doni</dc:creator>
		<pubDate>Thu, 06 Jan 2011 10:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://martinusadyh.web.id/2007/12/24/membuat-masterdetail-report-dengan-ireport/#comment-2192</guid>
		<description>mas mau nanya nih ...
saya buat sebuah project di java trus buat laporannya dengan ireport + jasperreport...
pas saya jalanin projectnya di netbeans, terus saya klik tombol cetak report, reportnya bisa jalan
tapi masalahnya pas saya jalankan file jar-nya yang ada di folder dist tanpa netbeans terus di klik button cetak terjadi error dengan pesan &quot; LAPORAN TIDAK DAPAT DICETAK,TERJADI ERROR DI JAVA.IO.FILENOTFOUNDEXCEPTION:SCR\REPORT\IDENTITAS 1.JASPER &quot;
padahal file identitas1.jaspernya sudah ada dalam package report
jadi kira2 apa masalahnya ya ??
mohon bantuannya ^^

method tombol cetak

try{
String nmFile = &quot;src\\report\\identitas1.jasper&quot;;
String driver = &quot;com.mysql.jdbc.Driver&quot;;
String konek = &quot;jdbc:mysql://localhost/latihanmvc2&quot;;
String user = &quot;root&quot;;
String password = &quot;&quot;;

HashMap parameter = new HashMap();
Class.forName(driver);
Connection connection = DriverManager.getConnection(&quot;jdbc:mysql://localhost/latihanmvc2&quot;, &quot;root&quot;, &quot;&quot;);

File reportFile = new File(nmFile);
JasperReport jReport = (JasperReport)JRLoader.loadObject(reportFile.getPa th());
JasperPrint jPrint = JasperFillManager.fillReport(jReport, parameter, connection);
JasperViewer.viewReport(jPrint, false);
JasperViewer.setDefaultLookAndFeelDecorated(true);

}catch(Exception e){
JOptionPane.showMessageDialog(null, &quot;Laporan tidak dapat dicetak, terjadi error di &quot;
+ e.getMessage(),&quot;cetak laporan&quot;, JOptionPane.ERROR_MESSAGE
);
}</description>
		<content:encoded><![CDATA[<p>mas mau nanya nih &#8230;<br />
saya buat sebuah project di java trus buat laporannya dengan ireport + jasperreport&#8230;<br />
pas saya jalanin projectnya di netbeans, terus saya klik tombol cetak report, reportnya bisa jalan<br />
tapi masalahnya pas saya jalankan file jar-nya yang ada di folder dist tanpa netbeans terus di klik button cetak terjadi error dengan pesan &#8221; LAPORAN TIDAK DAPAT DICETAK,TERJADI ERROR DI JAVA.IO.FILENOTFOUNDEXCEPTION:SCR\REPORT\IDENTITAS 1.JASPER &#8221;<br />
padahal file identitas1.jaspernya sudah ada dalam package report<br />
jadi kira2 apa masalahnya ya ??<br />
mohon bantuannya ^^</p>
<p>method tombol cetak</p>
<p>try{<br />
String nmFile = &#8220;src\\report\\identitas1.jasper&#8221;;<br />
String driver = &#8220;com.mysql.jdbc.Driver&#8221;;<br />
String konek = &#8220;jdbc:mysql://localhost/latihanmvc2&#8243;;<br />
String user = &#8220;root&#8221;;<br />
String password = &#8220;&#8221;;</p>
<p>HashMap parameter = new HashMap();<br />
Class.forName(driver);<br />
Connection connection = DriverManager.getConnection(&#8220;jdbc:mysql://localhost/latihanmvc2&#8243;, &#8220;root&#8221;, &#8220;&#8221;);</p>
<p>File reportFile = new File(nmFile);<br />
JasperReport jReport = (JasperReport)JRLoader.loadObject(reportFile.getPa th());<br />
JasperPrint jPrint = JasperFillManager.fillReport(jReport, parameter, connection);<br />
JasperViewer.viewReport(jPrint, false);<br />
JasperViewer.setDefaultLookAndFeelDecorated(true);</p>
<p>}catch(Exception e){<br />
JOptionPane.showMessageDialog(null, &#8220;Laporan tidak dapat dicetak, terjadi error di &#8221;<br />
+ e.getMessage(),&#8221;cetak laporan&#8221;, JOptionPane.ERROR_MESSAGE<br />
);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

