Skip to content

How to access setFreezeRow? #176

Closed Answered by tomnyc
tomnyc asked this question in Q&A
Discussion options

You must be logged in to vote

It is mentioned in the Spatie package documentation at the very bottom:

$writer->getWriter()

And to freeze the top row:

$sheetView = new SheetView();
$sheetView->setFreezeRow(2);
$writer->getWriter()->getCurrentSheet()->setSheetView($sheetView);

with $writer being an instance of SimpleExcelWriter

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomnyc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant