Skip to content
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

【bug】问题比较严重,导出时候丢失部分列 #502

Open
jobinli opened this issue Dec 18, 2023 · 3 comments
Open

【bug】问题比较严重,导出时候丢失部分列 #502

jobinli opened this issue Dec 18, 2023 · 3 comments

Comments

@jobinli
Copy link

jobinli commented Dec 18, 2023

环境: php7.2(docker desktop on windows, win10)

问题:写入数据,最基础的设置headers跟data,大概2.3w行数据,每行46列。在500行左右出现丢失列内容问题,且丢失的列无规律。

示例代码:

$xlsx = (new \Vtiful\Kernel\Excel(['path' => './runtime']))->fileName('test.xlsx', '20231216');
// $rows 是整理好的数据
foeach ($rows as $key => $row) {
    echo ($key+1), ' > ', json_encode($row);
}
$xlsx->header($headers)->data($rows);
$xlsx->output();

打印的输出(部分截取)
image

实际表格
image

连续一段出现丢失同一的列,后面又一堆丢失不同的列,没有规律

@jobinli
Copy link
Author

jobinli commented Dec 18, 2023

php --ri xlswriter
xlswriter

xlswriter support => enabled
Version => 1.5.2
bundled libxlsxwriter version => 1.1.3
bundled libxlsxio version => 0.2.27

@penn0312
Copy link

penn0312 commented Feb 1, 2024

有解决吗

@viest
Copy link
Owner

viest commented Jun 4, 2024

Can you provide mock data and code to reproduce the problem?

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

No branches or pull requests

3 participants