openoffice.org - renaming a sheet openoffice calc using c# -


I have a program that reads in a number of differnt files and has created various information store in OpenOffice Calc. The following code I have used to create a spreadsheet sheet:

  public XSpreadsheet getSpreadsheet (integer nIndex, XComponent xComp) {// Sheet XSpreadsheets xSheets = ((XSpreadsheetDocument) xComp) .getSheets Archive (); XIndexAccess xSheetsIA = (XIndexAccess) xSheets; XSpreadsheet xSheet = (XSpreadsheet) xSheetsIA.getByIndex (nIndex) .Value; Return xSheet; }  

This method is called as:

  XSpreadsheet newSheet = getSpreadsheet (sheetIndex, xComp);  

I know how to enter data in the table etc. However I do not know how to rename sheet for an OpenOffice application. Looking through the internet I have been able to get information only for Excel application which do not work for OO.

Do anyone have any idea on how this is possible?

Thanks

I have never programmed OpenOffice, so I think On 'docs you're using again, I found that it is the device that exports the methods of setName and getName . It seems like what you want if I am wrong, tell me - as I said, I have not used this

.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -