-
Notifications
You must be signed in to change notification settings - Fork 202
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
Suggestion - support right-to-left sheets #81
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Repository owner
deleted a comment from
ghalysaqqal
Dec 24, 2022
Hello. Do you planning to support RTL sheets? Thanks |
RTL mode added in 1.3.13 $data = [
[ 1, 2, 3],
[ 4, 5, 6]
];
SimpleXLSXGen::fromArray($data)
->rightToLeft()
->saveAs('test_rtl.xlsx'); |
Hi Sergey: # code
$SHEETVIEWS = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"' . ($this->rtl ? ' rightToLeft="1"' : '') . '>';
$AC = 'A1'; // Active Cell
if (count($this->sheets[$idx]['rows'])) {
# code
} else {
$ROWS[] = '<row r="1"><c r="A1" t="s"><v>0</v></c></row>';
$REF = 'A1:A1';
}
$SHEETVIEWS .= '<selection activeCell="' . $AC . '" sqref="' . $AC . '"/>';
$SHEETVIEWS .= '</sheetView></sheetViews>';
# code What do you think? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for your great library.
I would love to see support in sheets to be right to left for languages that are right to left.
Thanlks
The text was updated successfully, but these errors were encountered: