Davidi Millers

Greenhorn
+ Follow
since Jan 15, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Davidi Millers

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
8 years ago