Open wjlee2020 opened 1 year ago
@wangyun-microsoft (cc @Rick-Kirkham )
hey guys, I was curious on the progress for this issue? Not meaning to push, but my team and I are quite eager at the moment. If you need more details/info on what we're trying achieve with the add-in, please let me know!
hi @wjlee2020 - Thanks for raising this issue! I created a bug (8349880) and we'll provide updates here once available. Thanks again
@EsterBergen
curious, if we're able to get the type of the shape (such as "Group"), I assume there could be a way to get the contents of that Group type?
shape.groups
or something?
I feel like if we had this extra property, it would be quite easy solution for what we're trying to do.
@wjlee2020 - thanks for sharing! I'll add it to the bug to see what's possible. Will keep you posted here.
could you kindly update the current status of this issue? we would really like to be able to read grouped texts in our slides!
@yamapi-t - Thanks for the follow-up. It's still in the backlog. We'll provide more details as they become available. Thank you for your patience.
@EsterBergen This bug doesn't seem to be fixed yet, is there anything I can do to help, such as contribute? Also, if there is a discussion going on in the backlog, can I have the URL?
Hi @yamapi-t - Thank you for the follow-up. We haven't expanded functionality to include grouped shapes. As mentioned before, we have this in our backlog.
RichApi.Error - InvalidArgument Error when I run PowerPoint.run on a slide that has text boxes that are grouped.
Your Environment
Expected behavior
On a press of a button, I want to read all texts within the current slide and send it as JSON to my backend. I also want to mark certain texts with an underline with
textRange.getSubstring()
.Current behavior
It is not a problem when there are just text boxes or shapes with texts in them. The error mentioned above only seems to raise when there are grouped texts. Even 1 grouping will raise this error.
Steps to reproduce
yo office
and generate a new react addinCreate a button that runs
PowerPoint.run(async (context))
and try to read all shape items and their textFrames.sample code:
I even tried running the sample ScribLab for powerpoint using a grouped text and it also fails.
Link to live example(s)
Provide additional details
Context
The goal of my current add-in is to mark certain offset-length of text(s) inside a slide with a click of a button. Basically, it is to show where there could be grammar / nuance issues within the sentences / texts. Since I cannot control how users will create their texts (grouped or not), it is important that being able to read/write to shapes with texts can be done for grouped texts or non-grouped texts.
Useful logs
Screenshots
https://github.com/OfficeDev/office-js/assets/70941958/b512523a-4167-464b-99f1-8ec288fccf3a