Yes, I can do it by GUI.  

-
Albert 

-----Original Message-----
From: Andrew Douglas Pitonyak [mailto:and...@pitonyak.org] 
Sent: Thursday, January 22, 2009 20:24
To: dev@api.openoffice.org
Subject: Re: [api-dev] Java: insert DOC into a new Impress document?

Can you do this from the GUI? I tried and failed. My point is just that 
if you can not do this from the GUI, then you probably can not do this 
using the API (not always true, but...)

Albert Law wrote:
> Hi,
>
> I was wondering how to insert a DOC file into a new Impress document.
>
> I'm at the point where I have created the new Impress document, made an 
> XShape, and inserted the XShape.  But I have no idea how
to
> set the XShape to contain my DOC file which I have loaded into an XComponent.
>
> I've been playing around with:
>
> XPropertySet xPropertySetShape = 
> (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xShape);
> xPropertySetShape.setPropertyValue("CSLID", " 
> 12dcae26-281f-416f-a234-c3086127382e ");
> xDrawPage.add(xShape);
>
> Anyone know what to do?  Thanks!
>
>
>
> -
> Albert
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
> For additional commands, e-mail: dev-h...@api.openoffice.org
>
>   

-- 
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


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


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

Reply via email to