OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

C++ program to collect sheets from workbooks

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
BadMagic
General User
General User


Joined: 18 Oct 2005
Posts: 9
Location: Montana

PostPosted: Thu Mar 21, 2013 2:28 pm    Post subject: C++ program to collect sheets from workbooks Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group