Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Unable to read xlsx files generated with Crystal Report #832

Open
snoob opened this issue Sep 28, 2021 · 0 comments
Open

Unable to read xlsx files generated with Crystal Report #832

snoob opened this issue Sep 28, 2021 · 0 comments

Comments

@snoob
Copy link

snoob commented Sep 28, 2021

Hi,

When i try to read ($reader->open) a file generated with Crystal Report i got the following IOException :

could not open /tmp/xxxx for reading! (Index invalid or out of range)

After investigation, it works if i force the FileBasedStrategy by commenting this line(https://github.com/box/spout/blob/master/src/Spout/Reader/XLSX/Manager/SharedStringsCaching/CachingStrategyFactory.php#L65)
I have no idea why InMemoryStrategy doesn't work for my file.. Does anyone knows how FileBasedStrategy and InMemoryStrategy are different ? For me, they should work the same way it's only a performance concern.

Thank you by advance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant