-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to read xlsx file #130
Comments
The textual data is most frequently stored in shared strings, did you try using |
Thanks for quick reply |
No problem, thanks for trying CoreXLSX 🙂 Feel free to open an issue if you have any other questions or problems. |
while trying to read on background thread i am loosing control access DispatchQueue.global(qos: .background).async {
} |
Could you clarify please what exactly do you mean by "control access"? What issue are you experiencing, and what behavior do you expect? Also, the code in your last comment doesn't seem to contain any CoreXLSX types or calls. Unfortunately, I won't be able to diagnose issues without context. You'll need to share more code that interacts with CoreXLSX, so that I could reproduce the issue on my side. |
Hey @MaxDesiatov, i am trying to read xlsx file but getting value '0' every time
i am attaching sample xlsx file
it has 4 worksheets
as i am trying to get data of "xl/worksheets/sheet1.xml" worksheets
let file = XLSXFile(filepath: filePath)
let worksheet = try file.parseWorksheet(at: "xl/worksheets/sheet1.xml");
let cellValue = getTextFrom(worksheet.data!.rows[0].cells[0])
i am getting cellValue is 0 but is suppose to be This sheet is provided by PPPoker Co., Ltd. and is based on the derivative data of the virtual game currency , which is only a reference and does not have legal effect.
func getTextFrom(_ cell : Cell) -> String {
var text = ""
if cell.inlineString != nil {
text = cell.inlineString!.text ?? ""
}
else if cell.value != nil {
text = cell.value ?? ""
}
return text
}
file.xlsx
The text was updated successfully, but these errors were encountered: