[EMAIL PROTECTED] wrote:
I tried freezing a pane by following code

// setActiveSheet
XSpreadsheetView xSpreadsheetView = (XSpreadsheetView) UnoRuntime.queryInterface(XSpreadsheetView.class, xSpreadsheetController);
xSpreadsheetView.setActiveSheet(xSpreadsheet);
XViewFreezable xFreeze = (XViewFreezable) UnoRuntime.queryInterface(XViewFreezable.class, xSpreadsheetView );
boolean freezed = false;
if ( null != xFreeze ) {
System.out.println( "got xFreeze" );
xFreeze.freezeAtPosition( 1, 2 );
freezed = xFreeze.hasFrozenPanes();
System.out.println("pane is freezed ? " + freezed);
}


To my surprise I didn't get any exceptions or failures and what counts more the pane was not freezed.

Before frezing, were the columns/rows you want to freeze visible in the view? You can change the visible cells using the XViewPane interface.


Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to