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.

Any hints with a little snippet (Basic or Java) would be appreciated.

Or would you prefer a completely different approach for showing a preview in a form?

Regards

Peter


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

Reply via email to