Hello,
I'm making my next library that for sure will be really helpful to a lot of people.I will try to explain.
I have 2 classes in (one) library where you can reference too. (with shortname)
From EW, I need to create a sheet that refers to ExcelSheets.
This is my java code from Worker1:
Page is loaded from a java archive (jar) file in my library.
But everytime i try to run it, i get the following error:
I tried a lot of possibilities. The main reason for this is that I want to declare more than one sheets when creating one and so I can reference to others.
Dim sheet1, sheet2 as ExcelSheets
and so sheet1 acts different than sheet2
I think AlwaysBusy uses this a lot in his apps like when he has ABWifiObject, etc. But I think there he gets the info from other classes where I get them from a jar file
Hope you can help me.
Tomas
I'm making my next library that for sure will be really helpful to a lot of people.I will try to explain.
I have 2 classes in (one) library where you can reference too. (with shortname)
B4X:
Dim EW As ExcelWorker
Dim Sheet1 As ExcelSheets
From EW, I need to create a sheet that refers to ExcelSheets.
B4X:
Sheet1.sheet = EW.newSheet("Sheet1")
This is my java code from Worker1:
B4X:
public Sheet newSheet(String SheetName) {
Sheet sheet = wb.createSheet(SheetName);
return sheet;
}
Page is loaded from a java archive (jar) file in my library.
But everytime i try to run it, i get the following error:
Compiling code. 0.01
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 22
Sheet1.sheet = EW.newSheet(\
javac 1.6.0_21
src\com\rootsoft\worker\main.java:217: cannot access org.apache.poi.ss.usermodel.Sheet
class file for org.apache.poi.ss.usermodel.Sheet not found
mostCurrent._sheet1.sheet = mostCurrent._ew.newSheet("Sheet1");
^
1 error
I tried a lot of possibilities. The main reason for this is that I want to declare more than one sheets when creating one and so I can reference to others.
Dim sheet1, sheet2 as ExcelSheets
and so sheet1 acts different than sheet2
I think AlwaysBusy uses this a lot in his apps like when he has ABWifiObject, etc. But I think there he gets the info from other classes where I get them from a jar file
Hope you can help me.
Tomas