incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 121113] New: Need document to open in weblayout mode however it is opening in printlayout
Date Wed, 26 Sep 2012 11:04:50 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=121113

          Priority: P3
            Bug ID: 121113
          Assignee: ooo-issues@incubator.apache.org
           Summary: Need document to open in weblayout mode however it is
                    opening in printlayout
          Severity: major
        Issue Type: DEFECT
    Classification: Unclassified
                OS: All
          Reporter: anna.sagina@cerner.com
          Hardware: All
            Status: UNCONFIRMED
           Version: AOO 3.4.1
         Component: api
           Product: app dev

Need document to open in weblayout mode however it is opening in printlayout
mode in open office3.4.1 also. Printlayout giving a bad view to user as it
displays header and footer page numbers and margins.

Using this code to open the document in weblayout mode
//Create the property array to pass parameters
        PropertyValue[] browseProp = new PropertyValue[ 1 ];
        browseProp[ 0 ] = new PropertyValue();
        browseProp[ 0 ].Name = "BrowseView";//$NON-NLS-1$
        browseProp[ 0 ].Value =  Boolean.TRUE;

        try 
        {

            //Execute the UNO command, BrowseView, to switch to the web layout
mode.
            XDispatchProvider xDispatchProvider =
(XDispatchProvider)UnoRuntime.queryInterface(XDispatchProvider.class,
mBean.getFrame());
            helper.executeDispatch(xDispatchProvider, ".uno:BrowseView","", 0,
browseProp);//$NON-NLS-1$//$NON-NLS-2$
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message