Apache OpenOffice (AOO) Bugzilla – Issue 119292
AOO doesn't open documents (forms) in the saved view (web layout )
Last modified: 2012-07-25 09:01:41 UTC
I use writer documents with forms as frontend for base, if it was possible since many OOo/SO versions. If I open such a saved form it doesn't open in web layout. Because the document is write protected (read only by file system), there is no possibility to change the view from the print layout to web layout. In my opinion this is a show stopper. AOO340m1 Build:9590
Created attachment 77499 [details] example with database and textdocument in web and in print layout The initial view is correct in DEV300m102 and broken in DEV300m104. To reproduce the bug you can use the attached database. If Writer is in 'Web Layout' the form document is opened in 'Web Layout' too. If Writer is in 'Print Layout' the form document is opened in 'Print Layout' too. The settings stored in the document are ignored. I have verified, that the settings for property "InBrowseMode" are correctly set in the attached document. You can use the above as workaround: Open a new dummy textdocument and switch to the desired layout 'Web Layout' or 'Print Layout'. Then open the form-document.
It is no release blocker, because it is an old inherit bug and a workaround exists.
The corresponding issue in LibreOffice is https://bugs.freedesktop.org/show_bug.cgi?id=37024. It is fixed in LO.
Sorry, this _is_ a show stopper! Many costumers work daily at work with such forms. For these people it is out of interest if there is a workaround or a solution for an other product. I don't know how you define "old". OOo 3.3 is the version before AOO 3.4. Till this version forms can be used as expected.
I agree that this bug is ugly But it's simply too late now, sorry. Next time you start earlier with testing. befor RC Status. The Release is allready accepted. :-( It's definitifly a P2 and not P3 and it have to be fixed on 3.4.1 Greetings Raphael
it's also fairly easy to fix this with a macro. If you copy/paste the following into the Standard basic library: sub fixBaseForms( oevent as object ) if InStr( oEvent.Source.CurrentController.Title, ".odb :" ) <> 0 then ' switch to web view oEvent.Source.CurrentController.ViewSettings.setPropertyValue( "ShowOnlineLayout", True ) end if end sub [not be sure there no line wrap the copy/paste] Then in the customize dialog (Tools>Cutomize) set at the full office level. Switch to the Events tab, select the 'Open Document' event, click on the Macro button and select the fixBaseForms procedure added to the Standard Library. That is a quick hack, but it will fix the problem for the moment.
I am volunteering to work on a fix --> taking over this issue.
accept for 3.4.1, set release blocker flag
fixed on AOO34 branch, changed files: /sw/inc/doc.hxx, /sw/source/core/doc/docnew.cxx, /sw/source/core/doc/doclay.cxx, /sw/source/core/layout/frmtool.cxx, /sw/source/filter/basflt/shellio.cxx, revision 1336166
also fixed on trunk, revision 1336208
*** Issue 118977 has been marked as a duplicate of this issue. ***
*** Issue 119379 has been marked as a duplicate of this issue. ***
Verified it on Aoo_Trunk_20120616.1800.1350879 and it does not reproduce, so close it as fixed.
verify steps: 1)New a text document and switch to Web layout. 2)Open ExternesFormular Print.odt in attachment and check View->Print Layout 3)Open ExternesFormular Web.odt in attachment and check Vie->Web Layout Can't reproduce on AOO341 branch r1354891
*** Issue 120258 has been marked as a duplicate of this issue. ***
Verified working with OOo-Dev 3.4.1 r1354891. Thank you!
set target milestone AOO 3.4.1