Sabtu, 13 Desember 2014

10th Task - Report

Steps (Theory)


just chect it out here... (link download)

Task

Tugas Praktikum 
  • 1. Buatlah file jrxml seperti tutorial diatas namun menggunakan database akademik. Laporan berupa NIM,nama mahasiswa, nama Fakultas dan Jurusan. 
  • 2. Buatlah form pada netbeans dan buatlah tombol untuk pemanggilan file ireport yang telah dibuat! 
  • 3. Buat modifikasi laporan diatas sehingga laporan yang akan di print berdasarkan NIM mahasiswa yang berasal dari textfield!
Tugas Rumah 
  • 1. Buat laporan praktikum menggunakan DBMS mysql untuk mengerjakan tugas praktikum 1-3 dan tugas rumah nomor 2 letakkan di blog. 
  • 2. Buatlah aplikasi untuk laporan dengan desain seperti sebuat nota dan kwitansi sehingga akan muncul laporan seperti berikut : - Kwitansi

My Steps

Okay guys...
this is my step, lets get started.
1.  left click on the project then click report wizard

2. Then follow the step like on the picture, its easy I guess :)





3. Good, you made it

4. But, there is one more that you have you have to do for finish your iReport.
create button with name "print" for make you able to print or show the information that you need and then write the code from that button
frist, klick design and then create the button like usual using jButton and then double click on it.
second, lets write the code like the picture ahead.
// "report.jrxml" is the name of your jrmxl file that you created before
okay then if there is an error, check every name of your button the match it.

5 Well then, lets check it out ! :)



Conclution

In iReport it is very important to have a knowledge of integrating the Java code with the Jasper Report as the things do easier and provide lot of versatility to the report. Usage of Java Code in iReport is achieved by usage of scriptlets.

Scriptlets acts as bridge to get the Java Code in the iReport, scriptlet is a Java class which extends the JRDefaultScriptlet, and in this class we could write our user defined functions which later could be easily accessed in the report.

well then thats it my article about iReport. The way step by step tutorial how to make report with using iReport 3.5.1. When you look at it for a while maybe it looks so hard to and make your head dizzy :p . If yes, thats okay, i have same problem with you. However, actually its so easy and useful lesson. I believe that one day you will need id in you life #godWill

Note

all of content of this blog is dedicated for Mr Aziz Musthofa as Database Design Practice Lecture
and special thanks for Mr. Aziz Musthofa for his great lesson :)))