Well, I got lucky on that one. It was just a guess. I don't do much
macro programming, so I probably couldn't give you any more help about
this.
Continuing with my guessing, I suggest the following: With AS_CHARACTER
you probably don't want to use such large numbers for your horizontal
and vertical position values. Leave them at zero for starters, and see
what you get.
HTH,
Matt
On Sun, 2005-10-09 at 18:41 +0000, Daniel Beck wrote:
> Hello,
>
> First thank you Matt for your fast answer!
>
> I changed :
>
> xPropSet.setPropertyValue("AnchorType",
> com.sun.star.text.TextContentAnchorType.AT_PARAGRAPH);
> to
> xPropSet.setPropertyValue("AnchorType",
> com.sun.star.text.TextContentAnchorType.AS_CHARACTER);
>
> It works much better now.
> But then I insert an image now, it will be inserted at the beginning of
> the curently edited line.
> It looks as if the "X Coordinates" are ignored.
> I would like it to be inserted exactely at the point, where the user has
> got is cursor... thats much more natural.
>
> Daniel
>
> >On Sun, 2005-10-09 at 16:34 +0000, Daniel Beck wrote:
> >
> >
> >>Hello,
> >>
> >>
> >>Im trying to insert an image (a Gif image) under the cursor (the visual
> >>one, which the user uses for editing) inside the Writer of
> >>OpenOffice.org, but it seems to not work.
> >>Instead, the image is always pasted at the top of the Frame of
> >>OpenWriter. And, despite alle my investigation how to change it, I
> >>could archive to paste the image under the cursor .
> >>
> >>
> ><snip>
> >
> >Just a thought: What is the Anchor for the oGraphic set to? To achieve
> >your desire, you probably need to set it to "as Character" or "to
> >Character".
> >
> >Matt
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]