On Wed, Mar 9, 2011 at 5:47 PM, Michael Stahl
<michael.x.st...@oracle.com> wrote:
>> (xSectionProps is the XPropertySet of a XTextSection )
>>
>> Object         bitmapTable   =
>> createInstance("com.sun.star.drawing.BitmapTable");
>> XNameContainer nameContainer = ooQueryInterface.XNameContainer(bitmapTable);
>> String         graphicName   = "section-background"
>> nameContainer.insertByName(graphicName, "file:/home/user/file.png");
>
> i guess this should be "file:///home/user/file.png", right?
> does that work?
>

Thanks ...

Indeed It was the URL -- odd thing is I have been using such
(file:/home/user ) URIs since OOo 2.4 --

So 00 I have 2 instances of the same code ...

One has OOo 3.1 -- and it works with file:/home/user ...
Same code on OOo 3.3 -- and it works only with file:/// protocol URLs
e.g. file:///home/user
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help

Reply via email to