Variable dans une méthode DrawPage

Bonjour,

Je souhaite intégrer une variable dans une commande faisant appel à la méthode DrawPage.

PysGraph = oSheet1.DrawPage("photo1")

Remplacer "photo1" par une variable issue d'une liste déroulante sur autre feuille

voilà la totalité du code:

oDoc = thisComponent
PysFrame   = oDoc.CurrentController.Frame
oSheet1 = oDoc.sheets.getByName("base")
PysGraph = oSheet1.DrawPage("photo1") -> appeler si possible, au lieu de "photo1" une variable correspondant à la valeur de la cellule C3 de oSheet2 contenant une liste de nom de photo
oSheet2 = oDoc.sheets.getByName("appel")
PysCell = oSheet2.getCellRangeByName("F7")PysCell = oSheet2.getCellRangeByName("F7")
oDoc.currentcontroller.select(PysGraph)
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(PysFrame, ".uno:Copy", "", 0, Array())
oDoc.currentController.select(PysCell)
dispatcher.executeDispatch(PysFrame, ".uno:Paste", "", 0, Array()

Merci de votre aide

Michel Blanchard