Message de Cor Nouws  date 2009-02-03 12:34 :
Hi *,

Some months ago, I reworked some functions in Lotus Script to connect with
OpenOffice.org

Part of the functions take care to insert and resize a picture.
With some experience and info found on the web, all worked OK.
But later, the same code produced an error..

The line:
   lPictureSoureceRatio = oGraph.GraphicObjectFillBitmap.Size.Height
              / oGraph.GraphicObjectFillBitmap.Size.Width
produces error "Instance member GraphicObjectFillBitmap does not exist"

OTOH, the line:
   lPictureSoureceRatio = oGraph.Graphic.Size.Height
              / oGraph.Graphic.Size.Width
works fine, but does not necessarily have to give the correct result.


See IDL description of service com.sun.star.drawing.GraphicObjectShape
GraphicObjectFillBitmap :
Deprecated. Use graphic property instead!

You have to insert the image in the document first. Only then you can get useful information from Graphic.

Regards
  Bernard

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to