Fixed import from XLSX files

since getText() already returns a string, the encode() function results in a byte object which is not compatible with setAlias().
This commit is contained in:
Tobias Bossert
2020-06-25 12:20:45 +00:00
committed by wwmayer
parent 04833a5f1c
commit 603b19d7c8

View File

@@ -407,7 +407,7 @@ def handleWorkBook(theBook, sheetDict, Doc):
#print('Sheet Name: ', refList[0])
#print('Adress: ', adressList[0] + adressList[1])
actSheet, sheetFile = sheetDict[refList[0]]
actSheet.setAlias(adressList[0]+adressList[1], aliasName.encode('utf8'))
actSheet.setAlias(adressList[0]+adressList[1], aliasName)
def handleStrings(theStr, sList):
print('process Strings: ')