I rather NOT use the UNO-service type...
It requires possibly some structure (com.sun.star.*), but I can not find good help page how to use it. The examples I found by google, etc. searching were for Writer only (not for Calc).
--
  Jari

On 08/11/10 17:09, Cor Nouws wrote:
Hi Jari,

Jari Kosonen wrote (11-08-10 08:41)
Dear Developers Team,

(I am not a developer. Just a community member
However, this list is for developer issues.)

Can you advice how to add bitmap image into openoffice calc cell by
using calc-macro (and no uno-type)?

When image added to the calc cell, it should be scaled and rotated as well.
I can not find help pages for this problem.

You need quite some specific objects for that.
Some of them:
 - drawpage where the picture is placed:
thisComponent.Sheets(0).Drawpage
 - unoStructs for position and size
createUnoStruct("com.sun.star.awt.Point")
createUnoStruct("com.sun.star.awt.Size")
and maybe functions to embed your graphics.

Pls look at examples on the forums:
http://www.oooforum.org/
http://user.services.openoffice.org/en/forum/

If you have further questions, you can be helped there or at the list d...@api.openoffice.org.

Attached example shows how multiple images should be added in the
calc-sheet.

In general, attachments are stripped from the mails, so your one did not come true.

I hope I gave you some suggestions in the right direction,
Cor



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

Reply via email to