package org.apache.poi.xssf.usermodel.examples;
import java.io.FileOutputStream;
+import java.io.IOException;
import org.apache.poi.common.usermodel.HyperlinkType;
import org.apache.poi.ss.usermodel.Cell;
public class HyperlinkExample {
- public static void main(String[]args) throws Exception{
+ public static void main(String[]args) throws IOException {
Workbook wb = new XSSFWorkbook(); //or new HSSFWorkbook();
CreationHelper createHelper = wb.getCreationHelper();\r
\r
FileOutputStream out = new FileOutputStream("hyperinks.xlsx");
wb.write(out);
out.close();
-
+
+ wb.close();
}
}