Skip to content
\n

When I run t_excel, cell B10 has the calculated value 690. When I run t2_excel, cell B9 has the value 450.

","upvoteCount":0,"url":"https://github.com/PHPOffice/PhpSpreadsheet/discussions/4251#discussioncomment-11426598"}}}

I can't create excel by some function Pls help me #4251

Answered by oleibman
noombkk asked this question in Q&A
Discussion options

You must be logged in to vote

No problem at all when I execute your code. Is it possible that your system issues some output before the constructor, or in the constructor, or after your routine has finished? Here's the code I am using, which eliminates all those parts:

require __DIR__ . '/PhpSpreadsheet' . '/vendor/autoload.php';

use PhpOffice\PhpSpreadsheet\Spreadsheet;
//use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Style\Border;
use PhpOffice\PhpSpreadsheet\Style\Alignment;
use PhpOffice\PhpSpreadsheet\Style\Color;
//-->>use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use PhpOffice\PhpSpreadsheet\Style\NumberFormat; // Add this line

class issu…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@noombkk
Comment options

@oleibman
Comment options

Answer selected by oleibman
@noombkk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants