To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=70219
User bmarcelly changed the following:
What |Old value |New value
================================================================================
Status|UNCONFIRMED |RESOLVED
--------------------------------------------------------------------------------
Resolution| |INVALID
--------------------------------------------------------------------------------
------- Additional comments from [EMAIL PROTECTED] Wed Oct 11 06:22:48 -0700
2006 -------
There was an errror in my code, now it works. Sorry for the noise.
Here is the correct code:
importClass(Packages.com.sun.star.uno.UnoRuntime);
importClass(Packages.com.sun.star.sheet.XSpreadsheetDocument);
importClass(Packages.com.sun.star.container.XIndexAccess);
importClass(Packages.com.sun.star.table.XCellRange);
importClass(Packages.com.sun.star.sheet.XCellRangeAddressable);
importClass(Packages.com.sun.star.table.CellRangeAddress);
importClass(Packages.com.sun.star.sheet.XPrintAreas);
oDoc = XSCRIPTCONTEXT.getDocument();
xDoc = UnoRuntime.queryInterface(XSpreadsheetDocument, oDoc);
xSheets = xDoc.getSheets();
xSheetsIA = UnoRuntime.queryInterface(XIndexAccess, xSheets);
xSheet = xSheetsIA.getByIndex(0);
xRange = UnoRuntime.queryInterface(XCellRange, xSheet);
myZone = xRange.getCellRangeByName("A1:C15");
xCellRangeAddressable = UnoRuntime.queryInterface(XCellRangeAddressable,
myZone);
myRangeAddress = xCellRangeAddressable.getRangeAddress();
printZones = Array();
printZones[0] = myRangeAddress;
xPrintAreas = UnoRuntime.queryInterface(XPrintAreas, xSheet);
xPrintAreas.setPrintAreas(printZones);
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]