Peter Eberlein schrieb:

> Hi,
> 
> I embedded a frame in a writer database form, so that every database 
> record should show an associated document as a "preview".
> 
> The code triggered by changing the record looks like this (WinXP, 2.1):
> 
> obj =  ThisComponent.getEmbeddedObjects().getByName("Object1")
> embObj = obj.getExtendedControlOverEmbeddedObject()
> embObj.setUpdateMode(com.sun.star.embed.EmbedUpdateModes.ALWAYS_UPDATE)
> embObj.getComponent().FrameURL = "my new fileURL"
> embObj.update()
> 
> But updating doesn't load the new file into the frame.
> 
> Instead of setting the property "FrameURL" I would like to use the 
> method load() of XSynchronousFrameLoader, but don't know how to specify 
> the XFrame as second argument.
> This has the advantage, that the associated document could be loaded 
>>from a blob as a stream.

I'm afraid that the Frame object can't be operated that way.

> Or would you prefer a completely different approach for showing a 
> preview in a form?
If you could get a window into the form I had several ideas. But I don't
know how to achieve that.

I think we need a preview control. And now I wish we could extend the
form controls by extensions...

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to