The largest Interview Solution Library on the web

Interview Questions
« Previous | 0 | 1 | 2 | 3 | 4 | Next »

1.What is the difference between iReport and JasperReport?

Basically iReport is the report designer and JasperReport is the reporting engine.

2.How are JasperReports and iReports created?

Jasper Reports are created manually using jrxml file and compliling it. On the other hand iReport gives one the more user-friendly environment for developing reports.

3.How to determine the version of Java used by iReport designers in an environment?

In order to determine the specific version of Java used by the installation of iReport designer, the setting in thecon/ireporpro.con or in the ireport/etc/ireportpro. con should be used.

4.What are the steps for identifying the default Java version used for generating iReport?

When iReprot designer is using the default Java installation for the environment, opening a command line and executing the following command would help – java-version

5..What is the command line for setting jdkhome specifically for iReport?

When the jdkhome is set specifically for the iReport, opening a command line and going to the bin directory within the listed directories in the setting for executing the command java-version would help identifying the java version.

6..How to change the version of Java used by the iReport?

To change the version of Java used by iReport, the following setting has to be added or updated.
or <ireport-install-directory>/ireport/etc/ireportpro.conf.
The use of the command line would depend on the installation made.

7.What is the command line for changing the version of Java used by the iReport?

The command line for changing the version of Java used by the iReport is
jdkhome=”C:\Program Files\Java\jdk1.7″

8.What are the restrictions for using command line for changing the version of Java used by iReport?

User must ensure that the command line does not have any hash at the beginning of the line after it is updated. Because in such case it would no more be command line but would become comment only.

9.Can JRE be selected to generate iReport?

JRE was created using the JSmooth and one can modify the file ireport/etc/ireport.jsmooth using the jsmooth to force use of particular JVM.

10.How to solve the problem of running iReport when it generates Java error?

The config file is available in the etc folder where the jdkhome has been set. The path that is to be given there is the jdk path and not jre path. Installation of jdk is essential for the purpose.

11.How to resolve the windows installer problem in Java?

User has to first check whether he or she is running the program in a container or as standalone. Checking this would enable the person to get the right JAVA_HOME version for running the iReport.

12.How to add user defined functions In iReport?

User can use Java code in iReport using the scriptlets.

13..What is achieved by scriptlets?

.What is achieved by scriptlets? Scriptlets are the bridges that get the Java Code in iReport. iReport.scriptlet is a Java class that extends JRDefaultScriptlet where one can write user defined functions that can later be accessed easily in the report

14.How to run user defined functions in iReport?

A few simple steps help to run the user defined functions. The first step is to go to Tools-options- claspath tab –ADD Jar- choose Jar file. In iReport the Scriptlet node in Report Inspector chooses the property named ‘Scriplet Class’. Keying in the location of the user defined function would help.

15.What is JAR?

In iReport JAR is made on building the project containing the Scriptlet.

16.What is the specific necessity of the class containing user defined function?

The class containing the user defined functions needs to be extended by the JRDefaultScriptlet.

17..What is the parameter for using user defined function in iReport?

The parameter in iReport for using the user defined function is $P{REPORT SCRIPTLET} which is a predefined parameter for the user.

18.What is the process of using user defined function in iReport?

The user defined function is used with the $ P{REPORT SCRIPTLET}.userDefinedFun(). This function returns values from the scriptlet.

19.What are other user defined functions used in iReport?

Other user defined functions in iReport are $P{REPORT SCRIPTLET}.userDefinedfun($F{field}). These functions give fluidity to Java from the Jasper to Java code.

20.Is there any way to know how the report looks?

There is a PDF export that would show exactly how the report looks.

« Previous | 0 | 1 | 2 | 3 | 4 | Next »

copyright © 2014 - all rights riserved by