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

FreezePane not working in Ods documents #2013

Closed
pszalko opened this issue Apr 21, 2021 · 2 comments
Closed

FreezePane not working in Ods documents #2013

pszalko opened this issue Apr 21, 2021 · 2 comments

Comments

@pszalko
Copy link

pszalko commented Apr 21, 2021

This is:

- [X] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

This code should freeze row 1 in Ods document:

$sheet->freezePane('A2');

What is the current behavior?

First row is not frozen.

What are the steps to reproduce?

  1. Select current sheet.
  2. Freeze row as in code sample above.

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

<?php

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

// Create new Spreadsheet object
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();

// add code that show the issue here...
$sheet = $spreadsheet->getActiveSheet();
$sheet->setCellValue('A1', 'hello world!');
$sheet->freezePane('A2');

$filename = tempnam('/tmp', 'export_');
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Ods($spreadsheet);
$writer->save($filename);

Which versions of PhpSpreadsheet and PHP are affected?

I'm using: 1.17, didn't test earlier versions.

@MarkBaker
Copy link
Member

At the moment, FreezePane is only supported by the Xls and Xlsx Readers and Writers; Ods has rather a awkward data structure for frozen panes, I'll need to investigate further just how it's defined to see how practical it is to implement.

@stale
Copy link

stale bot commented Jun 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@stale stale bot added the stale label Jun 26, 2021
@MarkBaker MarkBaker mentioned this issue Apr 18, 2022
5 tasks
@oleibman oleibman removed the stale label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants