Apache OpenOffice (AOO) Bugzilla – Issue 35388
Cannot open a form or report from a database document
Last modified: 2005-07-25 22:06:49 UTC
Forms and reports cannot be opened from within a database document, neither from the user interface nor via API with "LoadComponentFromURL". I use the following API code to load the component: public XComponent openDatabaseDocument(String _docname, boolean _bAsTemplate, boolean _bReadOnly, XHierarchicalNameAccess _xDocuments){ XComponent xRetComponent = null; try { XComponentLoader xComponentLoader = (XComponentLoader) UnoRuntime.queryInterface(XComponentLoader.class, _xDocuments); PropertyValue[] aPropertyValues = new PropertyValue[4]; aPropertyValues[0] = Properties.createProperty("OpenMode", _bReadOnly ? "openDesign": "open" ); aPropertyValues[1] = Properties.createProperty("ActiveConnection", this.DBConnection); aPropertyValues[2] = Properties.createProperty("DocumentTitle", _docname); aPropertyValues[3] = Properties.createProperty("AsTemplate", new Boolean(_bAsTemplate)); XHierarchicalNameContainer xHier = (XHierarchicalNameContainer) UnoRuntime.queryInterface(XHierarchicalNameContainer.class, _xDocuments); if (xHier.hasByHierarchicalName(_docname)){ xRetComponent = xComponentLoader.loadComponentFromURL(_docname, "", 0, aPropertyValues); } } catch (Exception e) { e.printStackTrace(System.out); } return xRetComponent; }
.
BC: As we need the fix very urgently I set the priority to P2
This is a duplicate of P1 bug that will be fixed in SRC680m57. *** This issue has been marked as a duplicate of 35418 ***
reopening the issue to send it back
This is a duplicate so I send it back.
Set back to duplicate. *** This issue has been marked as a duplicate of 35418 ***
reopen the issue
set to fixed, because it's also fixed in this CWS
reopen for reassign ( stupid issuetracker :-( )
reassign to msc
Hi, fixed in cws dbwizard1 Bye Marc
Hi, verified in cws dbwizard1 Bye Marc
Hi, fixed in current developer build -> close. The current developer build can be found at http://download.openoffice.org/680/index.html Feel free to reopen if this issue is not fixed in the developer build. Bye Marc