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

pageSetup causes issues #216

Closed
JanMarvin opened this issue May 31, 2022 · 3 comments
Closed

pageSetup causes issues #216

JanMarvin opened this issue May 31, 2022 · 3 comments

Comments

@JanMarvin
Copy link
Owner

To reproduce. Seeing the issue with Windows 10 and Excel 16. Not sure when or why it happens

wb_workbook()$add_worksheet("cars")$add_data("cars", cars)$open()
@JanMarvin
Copy link
Owner Author

Or better, I know why it happens. rid 2 is vmldrawing and not pageSetup, though unsure why it isn't reporting on Mac ms365. And what precisely pageSetup expects. Maybe the printer setup binary file I removed. Can pageSetup be removed entirely? So many questions

@JanMarvin
Copy link
Owner Author

looks like removing rId fixes the issue. in default worksheet _rels and in pageSetup. I'll add a pull request

@JanMarvin
Copy link
Owner Author

'<pageSetup paperSize="%s" orientation="%s" scale = "%s" fitToWidth="%s" fitToHeight="%s" horizontalDpi="%s" verticalDpi="%s" r:id="rId2"/>',

self$pageSetup <- sprintf('<pageSetup paperSize="%s" orientation="%s" horizontalDpi="%s" verticalDpi="%s" r:id="rId2"/>', paperSize, orientation, hdpi, vdpi) ## will always be 2

exp <- "<pageSetup paperSize=\"9\" orientation=\"landscape\" scale = \"50\" fitToWidth=\"0\" fitToHeight=\"0\" horizontalDpi=\"300\" verticalDpi=\"300\" r:id=\"rId2\"/>"

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

No branches or pull requests

1 participant