Skip to content
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.

propagation of shape layout styles to the presentation slides #48

Closed
davidgohel opened this issue Nov 25, 2014 · 1 comment
Closed

propagation of shape layout styles to the presentation slides #48

davidgohel opened this issue Nov 25, 2014 · 1 comment

Comments

@davidgohel
Copy link
Owner

issue opened by geoffwright240 here:
#31


Thanks David. I can see how this solves cdeterman's problem but I am still a little confused about why the formatting from the layout specified in "slide.layout" does not propagate to the presentation slides when creating a document with ReporteRs. (I updated to 0.65 and the issue still seems to be there.)

For example, using the template "blank.pptx" which is attached here :

https://drive.google.com/file/d/0B1RA-a9WrV8JeTRTMlNlckUzSnc/view?usp=sharing

... and the following ReporteRs script :

# ReporteRs test
library(ReporteRs)
doc = pptx(template="blank.pptx")
slide.layouts(doc)

doc = addSlide(doc, slide.layout = "test")

doc = addParagraph(doc, pot("This picks up the expected colour and font size but not bulleted"))
doc = addParagraph(doc, pot("Formatting does not take"))
doc = addParagraph(doc, pot("Formatting does not take"))

fn = "db_test.pptx"
if (file.exists(fn)) file.remove(fn)
writeDoc(doc,fn)

... does not produce the desired results. Now, I can see that all of the formatting can be controlled from the ReporteRs script but it would be nice to also be able to use PowerPoints layouts to control the formatting as this task could then be assigned to a non-programmer.

If you open the file that is produced by the above code and "re-apply" the layout and then "reset" the layout, formatting is propagated as expected.

It is possible that this is only an issue with PowerPoint for Mac 2011 so if someone could confirm whether or not they are seeing this on other platforms, that might help track down what the problem is.

@davidgohel
Copy link
Owner Author

Hi @geoffwright240

I think the new version is solving that issue:
https://github.com/davidgohel/ReporteRs/releases/tag/v0.7.6

David

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

No branches or pull requests

1 participant