Skip to content

Commit bd9b00c

Browse files
authored
Create two new public methods in Excel so a user could access the workbook using java code like this: (#182)
java com.genexus.gxoffice.poi.xssf.ExcelDocument document = (com.genexus.gxoffice.poi.xssf.ExcelDocument)[!&ExcelDocument!].getDocument(); java org.apache.poi.ss.usermodel.Workbook workbook = document.getWorkBook();
1 parent 9f89b3b commit bd9b00c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

gxoffice/src/main/java/com/genexus/gxoffice/ExcelDoc.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ public short getReadOnly()
5151

5252

5353
IExcelDocument document;
54+
55+
public IExcelDocument getDocument()
56+
{
57+
return document;
58+
}
59+
5460
public void checkExcelDocument()
5561
{
5662
if(document == null)

gxoffice/src/main/java/com/genexus/gxoffice/poi/xssf/ExcelDocument.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ public String getTemplate()
291291
return template;
292292
}
293293

294+
public Workbook getWorkBook()
295+
{
296+
return workBook;
297+
}
298+
294299
protected String template="";
295300
protected Workbook workBook;
296301
protected String currentSheet;

0 commit comments

Comments
 (0)