Alle 09:28, venerdì 27 luglio 2007, Guido (email.it) ha scritto:
> Paolo Mantovani ha scritto:
> > ...
> >
> > La routine scambia le due immagini:
> >
> >
> > REM  *****  BASIC  *****
> >
> > Sub Main
> >
> > oSheet1 = ThisComponent.Sheets(0)
> > oPage1 = oSheet1.DrawPage
> > oShape1 = oPage1.getByIndex(0)
> > sUrl1 = oShape1.GraphicURL
> > aSize1 = oShape1.Size
> >
> > ....
>
> Approfitto ancora.
> Se devo selezionare una immagine da un documento WRITER
> come si deve cambiare il comando;
>
>  oShape1  = ThisComponent.Sheets(0).DrawPage.getByIndex(0)
>
> per istanziare le immagini disponibili nel documento?

In writer la DrawPage è disponibile direttamente dal modello del documento, 
perciò dovrebbe bastare questo:

 oShape1  = ThisComponent.DrawPage.getByIndex(0)

ciao
Paolo M

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Rispondere a