https://issues.apache.org/ooo/show_bug.cgi?id=121113
Priority: P3
Bug ID: 121113
Assignee: [email protected]
Summary: Need document to open in weblayout mode however it is
opening in printlayout
Severity: major
Issue Type: DEFECT
Classification: Unclassified
OS: All
Reporter: [email protected]
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.