[GH-ISSUE #330] Set Border #265

Closed
opened 2026-05-05 12:03:36 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @willm132 on GitHub (May 11, 2021).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/330

I am attempting to set a border with style thin as follows:

format_set_border(boldText, LXW_BORDER_THIN)

However, I am getting this error: Cannot convert value of type 'low_format_borders' to expected argument type 'Uint8'

Originally created by @willm132 on GitHub (May 11, 2021). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/330 I am attempting to set a border with style thin as follows: `format_set_border(boldText, LXW_BORDER_THIN)` However, I am getting this error: `Cannot convert value of type 'low_format_borders' to expected argument type 'Uint8'`
Author
Owner

@willm132 commented on GitHub (May 11, 2021):

Found fix: format_set_border(boldText, UInt8(LXW_BORDER_THIN.rawValue))

<!-- gh-comment-id:838645483 --> @willm132 commented on GitHub (May 11, 2021): Found fix: `format_set_border(boldText, UInt8(LXW_BORDER_THIN.rawValue))`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#265
No description provided.