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

range.getImage() returns unknown response on Excel Mac #4921

Open
sahil-shubham opened this issue Sep 24, 2024 · 5 comments
Open

range.getImage() returns unknown response on Excel Mac #4921

sahil-shubham opened this issue Sep 24, 2024 · 5 comments
Assignees
Labels
Area: Excel Issue related to Excel add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info

Comments

@sahil-shubham
Copy link

sahil-shubham commented Sep 24, 2024

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Mac
  • Host [Excel, Word, PowerPoint, etc.]: Excel
  • Office version number: 16.89.1 (24091630)
  • Operating System: 15.0
  • Browser (if using Office on the web): 129.0.6668.59

Expected behavior

Using the Range.getImage() on the above mentioned excel desktop on mac returns an unknown string. Ideally, this should have been a base64 string.

Current behavior

The current behaviour results in the following output. The same code running on the excel web returns this instead. I don't see any console errors.

Steps to reproduce

  1. Try range.getImage() for say the used range

Context

Trying to get an image of the excel sheet and identify different table boundaries using a model in the backend.

Useful logs

  • Attached output gists for both web and desktop
Copy link
Contributor

Thank you for letting us know about this issue. We will take a look shortly. Thanks.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: attention 👋 Waiting on Microsoft to provide feedback label Sep 24, 2024
@shanshanzheng-dev
Copy link
Contributor

Hi @sahil-shubham Thanks for reporting this issue. Could you share us your test code, that will help us repro your issue better. Thanks.

@sahil-shubham
Copy link
Author

sahil-shubham commented Sep 25, 2024

@shanshanzheng-dev Here you go. Thanks for the quick response on the issue.

Let me know if you need anything else from my side.

@shanshanzheng-dev
Copy link
Contributor

Hi @sahil-shubham Thanks, I can repro, we'll take a look this and report back if we have a suggestion for you, but unfortunately, we can't share the timeline.

@XuanZhouMSFT
Copy link

Hi @sahil-shubham, thanks for reporting this issue. I see the base64 string in MAC, Win43 and online are different. But they are all valid to use. You can try it with sample code like "context.workbook.worksheets.getActiveWorksheet().shapes.addImage(mybase64.value)" to have a try.

@XuanZhouMSFT XuanZhouMSFT added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Excel Issue related to Excel add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info
Projects
None yet
Development

No branches or pull requests

3 participants