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

[XSSF] The style does not apply to the cell #1234

Closed
1 of 5 tasks
workgroupengineering opened this issue Dec 11, 2023 · 0 comments · Fixed by #1235
Closed
1 of 5 tasks

[XSSF] The style does not apply to the cell #1234

workgroupengineering opened this issue Dec 11, 2023 · 0 comments · Fixed by #1235

Comments

@workgroupengineering
Copy link
Contributor

NPOI Version

2.6.2 and f1ecc1e

File Type

  • XLSX
  • XLS
  • DOCX
  • XLSM
  • OTHER

Upload the Excel File

Please attach your original Excel File to help us reproduce the issue

Reproduce Steps

using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;

IWorkbook workbook =  new XSSFWorkbook();
ISheet sheet = workbook.CreateSheet("Test");

var row = sheet.CreateRow(0);
row.CreateCell(0).SetCellValue("Hello");

row.Cells[0].CellStyle.Alignment = HorizontalAlignment.Right;

using var fs = File.Create("Test.xlsx");

workbook.Write(fs);

Issue Description

The cell Alignment is not apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants