Joined: 18 Oct 2005
|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.
//...then create an instance of Xspreadsheet, able to manage
//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?
Libreoffice 4.0.1 on OpenSuse 12.3