ScPageObj, getByName

Hi
Is it possible to get an image inside a ScPageObj (obtained by .getDrawPage() in a sheet) by name instead of iterating over getByIndex?

Thanks in advance

The DrawPage of a spreadsheet only supports one lonely service, and this service does not support (“export”) the interface XNameAccess.

1 Like

A single Sheet holds anyway exactly one Drawpage … sofar you have indirekt NameAccess via:

sheet = doc.Sheets.getByName( " <your sheetname here> ")
drawpage = sheet.Drawpage