I need to preview a user uploaded excel file in my web application. From the Micorsoft Graph API to interact with Onedrive I could understand that I can get iFrame embed links either using createlink api or preview api.
Here I have an additional requirement to choose a particular sheet from the available multiple sheets in the work book when the preview is shown itself.
I have seen that the preview api has a parameter "page" to pass in body but could not see a positive change thought I had passed the probable inputs.
- For example I have a workbook sample.xlsx in onedrive.
- and workbook have sheet1 sheet2 and sheet3 as worksheets
- I am getting a preview embed link via preview api and embed it in an iframe.
- But this will show sheet3 as chosen by default. where I need to show sheet2.
Is there somehow I could acheive this via graph api ?
So can anyone help me in this with, is there a way to preview an excel file stored in one drive with a particular sheet selected or can we pass it in the api body?