-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Description
Hey,
When I use wrapText=TRUE I obtain a corrupted file:
wb <- createWorkbook()
addWorksheet(wb, "Expenditure", gridLines = FALSE)
writeData(wb, sheet = 1, USPersonalExpenditure, rowNames = TRUE)
bodyStyle <- createStyle(fontSize=10, border="TopBottomLeftRight", borderColour = "black" , wrapText=TRUE)
headerStyle <- createStyle(fontSize=14, border="TopBottomLeftRight", borderColour = "black", textDecoration="bold")
addStyle(wb, sheet = 1, bodyStyle, rows = 2:6, cols = 1:6, gridExpand = TRUE)
addStyle(wb, sheet = 1, headerStyle, rows = 1, cols = 1:6, gridExpand = TRUE)
setColWidths(wb, 1, cols=1, widths = 21) ## set column width for row names column
saveWorkbook(wb, "addStyleExample.xlsx", overwrite = TRUE)
I attached a file with and without text wrapping for your convenience.
Metadata
Metadata
Assignees
Labels
No labels