I am developing a tool which should read out data from a GUI Form
and write them into an existing .xlsm Exel file. The Form is allready
created and the data from the Form are getting saved in variables
on click at the "save data" button. I researched the possibilities on
how to write into an Excel file and found examples which are using
the apache.poi package. Until now I managed to import the apache
.poi package but when I try to use it, it doesn't work and I only get
several error messages.
Error messages:
17: error: illegal start of type
try {
17: error: ';' expected
try {
20: error: <identifier> expected
workbook = new XSSFWorkbook(
27: error: <identifier> expected
workbook.write(out);
27: error: <identifier> expected
workbook.write(out);
28: error: <identifier> expected
out.close();
29: error: <identifier> expected
System.out.println("xlsm created successfully..");
29: error: illegal start of type
System.out.println("xlsm created successfully..");
31: error: class, interface, or enum expected
} catch (FileNotFoundException e) {
33: error: class, interface, or enum expected
} catch (InvalidFormatException e) {
35: error: class, interface, or enum expected
} catch (IOException e) {
37: error: class, interface, or enum expected
}
12 errors