[GH-ISSUE #457] Any plans for Shape support? #355

Closed
opened 2026-05-05 12:11:41 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @znakeeye on GitHub (Oct 18, 2024).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/457

In drawing.c(847) there seems to be a comment indicating that Shape support is coming. Any plans for it?

E.g.:

image

If not planned, is it possible to somehow write a custom element. If I could store xml as a string and feed it to some API...

Originally created by @znakeeye on GitHub (Oct 18, 2024). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/457 In [drawing.c(847)](https://github.com/jmcnamara/libxlsxwriter/blob/d9633436dcfee1d5018218e7b980241ccd612245/src/drawing.c#L847) there seems to be a comment indicating that `Shape` support is coming. Any plans for it? E.g.: ![image](https://github.com/user-attachments/assets/194b7366-fd5e-4009-80e8-b5d14deefb72) If not planned, is it possible to somehow write a custom element. If I could store xml as a string and feed it to some API...
Author
Owner

@jmcnamara commented on GitHub (Oct 18, 2024):

That is supported in the Python/Perl/Rust versions (at least for textboxes): https://xlsxwriter.readthedocs.io/working_with_textboxes.html

However, I don't have plans to implement it in the C version due to the work involved and the fact that it isn't frequently requested.

<!-- gh-comment-id:2423363739 --> @jmcnamara commented on GitHub (Oct 18, 2024): That is supported in the Python/Perl/Rust versions (at least for textboxes): https://xlsxwriter.readthedocs.io/working_with_textboxes.html However, I don't have plans to implement it in the C version due to the work involved and the fact that it isn't frequently requested.
Author
Owner

@jmcnamara commented on GitHub (Oct 18, 2024):

Closing as won't fix. Sorry.

<!-- gh-comment-id:2423364006 --> @jmcnamara commented on GitHub (Oct 18, 2024): Closing as won't fix. Sorry.
Author
Owner

@znakeeye commented on GitHub (Oct 19, 2024):

Ok. And there is no way to somehow write custom xml? I.e. I would grab drawing1.xml from an XLSX file and inject that when writing using libxlsxwriter.

<!-- gh-comment-id:2423660637 --> @znakeeye commented on GitHub (Oct 19, 2024): Ok. And there is no way to somehow write custom xml? I.e. I would grab `drawing1.xml` from an XLSX file and inject that when writing using `libxlsxwriter`.
Author
Owner

@jmcnamara commented on GitHub (Oct 20, 2024):

is no way to somehow write custom xml? I.e. I would grab drawing1.xml from an XLSX file and inject that when writing using libxlsxwriter

Unfortunately not. There are drawing and shape ids that need to be tracked/updated and additional file references to be added. That is one of the implementation difficulties with the xlsx format, there are a lot of interlinked relationships.

<!-- gh-comment-id:2425188547 --> @jmcnamara commented on GitHub (Oct 20, 2024): > is no way to somehow write custom xml? I.e. I would grab `drawing1.xml` from an XLSX file and inject that when writing using `libxlsxwriter` Unfortunately not. There are drawing and shape ids that need to be tracked/updated and additional file references to be added. That is one of the implementation difficulties with the xlsx format, there are a lot of interlinked relationships.
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#355
No description provided.