Apache OpenOffice (AOO) Bugzilla – Issue 47271
dynamic reports open in edit mode
Last modified: 2006-05-31 14:29:06 UTC
- open the attached database document - open the one report therein by double-clicking it => the report opens, and is filled with data => the report document is in edit mode. In particular, all visual helpers which are only relevant for editing a document (such as the document border, table lines, backgrounds of text fields (e.g. the date)) are shown. This looks pretty ugly, and is probably not what users would expect here.
Created attachment 24987 [details] document to reproduce the bug case
It breaks from version m90 to m91
targeting to 2.0, in agreement with MSC, and approved by TZ.
It is a problem with filling the report by macro, after it has been opened: First, we loadComponentFromURL the document with a ReadOnly=true parameter. This works fine. Then, we start a Java service which fills the document with data, which results in the document not being readonly anymore. Well, kind of. The context menu of the document still is the one from RO-docs, but the rest of the view says it's not RO anymore. If I skip the last step on our side (i.e. starting the wizard which fills the document), then everything is fine.
->OJ: In dbaccess ODocumentDefinition::loadEmbeddedObject() there are two calls of attachResource() at the model. The first switches Readonly off the second switches back. This is not necessary to be able to change the report document via API. (But it should work anyway) The reason why it doesn't work is not yet known.
Fixed in cws dba33
PLease verify. Thanks. re-open issue and reassign to msc@openoffice.org
reassign to msc@openoffice.org
reset resolution to FIXED
*** Issue 47272 has been marked as a duplicate of this issue. ***
verified in master -> close