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

Update vmlDrawing in worksheets_rels #402

Closed
JanMarvin opened this issue Nov 5, 2022 · 0 comments
Closed

Update vmlDrawing in worksheets_rels #402

JanMarvin opened this issue Nov 5, 2022 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@JanMarvin
Copy link
Owner

There is an unrelated bug in charts vml handling (in this case it is related to embedded files, therefore most likely not that visible to users):

library(openxlsx2)

fl <- system.file("extdata", "mtcars_chart.xlsx", package = "openxlsx2")
wb <- wb_load(fl)
wb$save("/tmp/test.xlsx")

wb$worksheets_rels[[4]][2] <- # vmlDrawing is now vmlDrawing4 not 1
  "<Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing\" Target=\"../drawings/vmlDrawing4.vml\"/>" 
  
wb$open()

unlink("/tmp/xlsx", recursive = TRUE)
unlink("/tmp/test", recursive = TRUE)

unzip(fl, exdir = "/tmp/xlsx")
unzip("/tmp/test.xlsx", exdir = "/tmp/test")
@JanMarvin JanMarvin added the bug 🐛 Something isn't working label Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant