India

ZestyBeanz Technologies Pvt Ltd 4th Floor, Nila, Technopark Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171

   .

ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

XLS Formula in Jasper Report using iReport

Contact Form


Prajul P T's picture

XLS Formula in Jasper Report using iReport

Jasper report is an reporting tool used in OpenERP for printing the reports in formats like pdf, Excel, HTML etc. Lets consider an example about the accounting reports. The report contain details regarding the credit amount, debit amount balance etc. It would be very useful if the report is printed in excel format. In excel sheet we will be able to specify the formula based on which each cell value is calculated. So if we are generating the excel sheet from jasper report we should be able to specify the formule in jasper report which should be used in the excel sheet.

I am using OpenERP 6.1, Jasper report 4.5.1, iReport 4.5.1 and JDBC Data source for developing the report. To use the formula in excel report, each cell in excel should understand what is the datatype of the data that it is holding. For this we have to set a property in ireport. Go to report properties and add an property as "net.sf.jasperreports.export.xls.detect.cell.type" to True. By setting this property, if we give float for an element in ireport, it will be considered as a float value in excel. 

Now to set the formula based on which the cell value is calculated, select the element in ireport for which the formula is to be applied  and go to peroperties, select property expression, click add. Set Property Name as "net.sf.jasperreports.export.xls.formula".  Since we are using an expression, check the "Use Expression" field. Now add the expression or formula like "Sum(D"+$V{first_row}+":D"+$V{last_row}+")" where $V{first_row} and $V{last_row} are the row numbers that is needed to be applied on the element. An sreenshot is shown below:

 

Excel Formula Tutorials :  https://www.guru99.com/excel-tutorials.html
http://spreadsheets.about.com/od/excelformulas/ss/formula_begin.htm



Muneer's picture

I want to share a site where

I want to share a site where you can find a lot of information about health and fitness, internet business,real estate, photography, transport, and home security and can buy a lot of things. visit seekdrive

faisal19999's picture

Your site's information is

Your site's information is fascinating and faithful. This site's related data on my website. So I want to visit my site. I hope you get the information on my site.

faisal19999's picture

Your site's information is

Your site's information is fascinating and faithful. This site's related data on my website. So I want to visit my site. I hope you get the information on my site.

Negan Jacket's picture

Thanks for sharing us yours

Thanks for sharing us yours precious time to create this post, its so informative and the content make post more interesting. Really appreciated. Negan Jacket

johnbahi's picture

a debt of gratitude is in

a debt of gratitude is in order for sharing us your program/technique I preferred it a great deal !!!
here's my site named factscholar where you can discover data about health.
factscholar

johnbahi's picture

thanks for sharing us your

thanks for sharing us your program/method I liked it a lot !!!
here's my site named icoachhandbags where you can find any information need in your life.

faisal19999's picture

I think I have never observed

I think I have never observed such web journals ever that has total things with every one of the subtleties which I need. So benevolently update this ever for us. whenwillamywinehousedie

faisal19999's picture

Your site is mindblowing and

Your site is mindblowing and this sites related data on my website, therefore, I want to visit this site.

Anonymous's picture

Blog gave us valuable data to

Blog gave us valuable data to work. You have completed Education. So look at our site it will be useful for you. A debt of gratitude is in order for sharing. https://teacherrevised.org

Edgar's picture

Hi. Thank you for the

Hi. Thank you for the article. How can we set row numbers dynamically?