BadMagic General User

Joined: 18 Oct 2005 Posts: 9 Location: Montana
|
Posted: Thu Mar 21, 2013 2:28 pm Post subject: C++ program to collect sheets from workbooks |
|
|
I am trying to write a program that will collect / copy specific spreadsheets from workbooks.
So far I am able to find the workbooks and the specific sheets. Now I need to collect them together into a new workbook.
I've been able to find code to get my sheet copied.
Any any=xIndex->getByIndex(0);
//...then create an instance of Xspreadsheet, able to manage
//single worksheets;
Reference<XSpreadsheet> xSheet;
//finally, assign the first worksheet to xSheet
any >>= xSheet;
And I have a new workbook.
Reference<XSpreadsheetDocument> xSheetDocumentNew (xComponentNew,UNO_QUERY);
Now, how do I add this xSheet to xSheetDocumentNew?
B-) _________________ Libreoffice 4.0.1 on OpenSuse 12.3 |
|