英文:
Not able to read file with live data which is a calculation from another application (DDE function)
问题
抱歉,你的请求已被确认。以下是翻译好的部分:
I'm trying to read an XLS file. Data of which is being updated by an external application through a formula (DDE function). So, the file is getting updated every second. When I try to read the file, I'm getting the below error.
Error:
ErrorException: Uninitialized string offset 0 in file C:\xampp\htdocs\gold-rate\gold-rate-web-test\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Reader\Xls.php on line 7803
Code:
$inputFileType = 'Xls';
$inputFileName = 'sources/win.xls';
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
$spreadsheet = $reader->load($inputFileName);
How can I read the file?
Thanks in advance!
英文:
I'm trying to read an XLS file. Data of which is being updated by an external application through a formula (DDE function). So, the file is getting updated every second. When I try to read the file, I'm getting the below error.
Error:
ErrorException: Uninitialized string offset 0 in file C:\xampp\htdocs\gold-rate\gold-rate-web-test\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Reader\Xls.php on line 7803
Code:
$inputFileType = 'Xls';
$inputFileName = 'sources/win.xls';
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
$spreadsheet = $reader->load($inputFileName);
How can I read the file?
Thanks in advance!
答案1
得分: 1
我已经通过这篇帖子的帮助解决了这个问题:
英文:
I've fixed the issue with the help of this post,
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论