Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Image in starcalc

0 views
Skip to first unread message

brinda...@gmail.com

unread,
Jun 15, 2007, 2:28:39 AM6/15/07
to
Hi,
I am trying to integrate staroffice and visual basic. i want to add an
image to starcalc. i was able to do this but the size of the image
seems to be very very small.
Set apos = oDoc.createinstance("COM.sun.star.awt.Point")
Set aSize = oDoc.createinstance("COM.sun.star.awt.Size")

apos.x = 1000
apos.y = 1000

aSize.Width = 10000
aSize.Height = 10000

Set oLinked =
oDoc.createinstance("com.sun.star.drawing.GraphicObjectShape")
oLinked.GraphicURL = "file:///e:/5346"
oLinked.Position = apos
oLinked.Size = aSize
oPage.Add (oLinked)
i have used the above code, but no use of resizing the image.

0 new messages