Skip to content

Commit 5c62432

Browse files
Comply with the interface of other msoffice methods
1 parent bb00da7 commit 5c62432

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

gxoffice/src/main/java/com/genexus/msoffice/excel/IExcelCellRange.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
public interface IExcelCellRange
88
{
9+
String getHyperlinkValue();
10+
11+
Boolean setHyperlinkValue(String value);
12+
913
int getRowStart();
1014

1115
int getRowEnd();

gxoffice/src/main/java/com/genexus/msoffice/excel/poi/xssf/ExcelCells.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,28 @@ public boolean setHyperlink(String value) throws ExcelException {
757757
}
758758
}
759759

760+
@Override
761+
public String getHyperlinkValue() {
762+
try {
763+
return this.getHyperlink();
764+
} catch (ExcelException e) {
765+
_errorHandler.setErrCod((short) e.get_errorCode());
766+
_errorHandler.setErrDes(e.get_errDsc());
767+
}
768+
return "";
769+
}
770+
771+
@Override
772+
public Boolean setHyperlinkValue(String value) {
773+
try {
774+
return this.setHyperlink(value);
775+
} catch (ExcelException e) {
776+
_errorHandler.setErrCod((short) e.get_errorCode());
777+
_errorHandler.setErrDes(e.get_errDsc());
778+
}
779+
return false;
780+
}
781+
760782
protected void copyPropertiesStyle(XSSFCellStyle dest, XSSFCellStyle source) {
761783
dest.cloneStyleFrom(source);
762784
}

0 commit comments

Comments
 (0)