Hello again,
I've run into yet another problem. I'm looking to load another document
into a frame I've already created (or, failing that, I'd like to reuse
the window).
At the moment, to load the first document, I'm running:
self.doc = self.frame.loadComponentFromURL(url, "_self", 2, (hidden,))
where 'self.frame' is an instance of 'com.sun.star.frame.Frame'. This
works fine.
I'm trying to use exactly the same code to load the second document into
the same Frame, but this causes a segmentation fault. :( I've tried
creating a new frame, using:
def create_frame(self):
self.frame =
self.smgr.createInstanceWithContext("com.sun.star.frame.Frame", self.ctx)
self.frame.initialize(self.window)
self.frame.LayoutManager = None
to no avail. I've also tried disposing the old Frame, but that disposal
in itself causes a segmentation fault.
I presume I'm doing something wrong. Could anyone give me pointers on
how to fix it?
Dan
--
credativ ltd UK office: +44 1788 298150
PO Box 3868 Direct ext: +44 1788 298152
Rugby Email: [EMAIL PROTECTED]
CV21 3WW Web: http://www.credativ.co.uk/
credativ limited is registered in England & Wales, company no. 5261743
registered office: Suite 2 Bloxam Court, Corporation Street, Rugby CV21
2DU
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]