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

How to set a boeder? Please teach me!!!! T_T #309

Closed
txtxtxtxtxtxtx opened this issue Dec 17, 2024 · 7 comments
Closed

How to set a boeder? Please teach me!!!! T_T #309

txtxtxtxtxtxtx opened this issue Dec 17, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request resolved This issue has been resolved.

Comments

@txtxtxtxtxtxtx
Copy link

Could you please give me a example about how to set the cells' borders? It bothered me a long time.

@aral-matrix
Copy link
Collaborator

Good point, I will add that to Demo10 eventually. For now, you can find some hints in the disabled code branch of Demo10, starting in line 290.

@aral-matrix aral-matrix added the enhancement New feature or request label Dec 17, 2024
@aral-matrix aral-matrix self-assigned this Dec 17, 2024
@txtxtxtxtxtxtx
Copy link
Author

Thank you for your reply!!! Actually I found it before, but I don't know how to use it? I try to :

@txtxtxtxtxtxtx
Copy link
Author

XLStyleIndex leftBorder = borders.create();
borders[leftBorder].setOutline(true);
borders[leftBorder].setLeft(OpenXLSX::XLLineStyleThin, OpenXLSX::XLColor("ff000000"));

wks.cell("A2").setCellFormat(leftBorder); // I try to use the border, but it doesnt work, please give me some right codes.

@aral-matrix
Copy link
Collaborator

Just patched c297aad - please be aware of the caution for resolution of #304

@aral-matrix aral-matrix added ready to close Pull request has been answered or implemented & is pending closure testing Functionality has been implemented in development branch and is pending a merge into main labels Dec 17, 2024
@txtxtxtxtxtxtx
Copy link
Author

Thank you so much, I get it!!! You are a passionate genius!!! God will bless you all the time!!!

@aral-matrix
Copy link
Collaborator

Feel free to have a look at 53419c7 - I improved the demo for cell borders a bit in Demo10

@aral-matrix
Copy link
Collaborator

Patch for Demo10 has been merged into main branch. Closing as resolved.

@aral-matrix aral-matrix added resolved This issue has been resolved. and removed testing Functionality has been implemented in development branch and is pending a merge into main ready to close Pull request has been answered or implemented & is pending closure labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request resolved This issue has been resolved.
Projects
None yet
Development

No branches or pull requests

2 participants