In this program we are going to make a java program through which we can zoom out(+) an excel sheet. This means you can make an excel sheet larger than their original size .
The package we need to import is java.io.*,java.util.* ,org.apache.poi.hssf.usermodel.HSSFSheet, org.apache.poi.usermodel.HSSFRow, org.apache.poi.usermodel.HSSFCell and org.apache.poi.hssf.usermodel. HSSFWorkbook.
setZoom(int,int):
This method is used to set the zoom ratio of the excel
sheet e.g. setZoom(4,3) means zoom the sheet to 125%.
In this example, we are creating the sheet and set the
zoom ratio 200%.This means the output of the sheet will be zoomed out 100% of their original size. In other words we can say the size of excel sheet will be expanded
by 100%.
The code of the program is given below:
<%@ page import="org.apache.poi.hssf.usermodel.HSSFSheet"%>
|
The output of the program is given below:


If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Zoom Out Excel
Post your Comment