Click here to Skip to main content
15,898,371 members
Home / Discussions / COM
   

COM

 
Question"component not correctly registered" error when Office 2007 installed Pin
Gene Joy7-Oct-09 8:59
Gene Joy7-Oct-09 8:59 
AnswerRe: "component not correctly registered" error when Office 2007 installed Pin
«_Superman_»7-Oct-09 14:16
professional«_Superman_»7-Oct-09 14:16 
AnswerRe: "component not correctly registered" error when Office 2007 installed Pin
Md. Marufuzzaman9-Oct-09 9:04
professionalMd. Marufuzzaman9-Oct-09 9:04 
AnswerRe: "component not correctly registered" error when Office 2007 installed Pin
Md. Marufuzzaman9-Oct-09 9:05
professionalMd. Marufuzzaman9-Oct-09 9:05 
Questioncreating a web interface for windows media services, in server 2003 Pin
ramitha7772-Oct-09 17:20
ramitha7772-Oct-09 17:20 
QuestionCOM Tutorials Pin
msr_codeproject2-Oct-09 16:33
msr_codeproject2-Oct-09 16:33 
AnswerRe: COM Tutorials Pin
Richard MacCutchan2-Oct-09 22:43
mveRichard MacCutchan2-Oct-09 22:43 
AnswerRe: COM Tutorials Pin
cariolihome18-Oct-09 10:54
cariolihome18-Oct-09 10:54 
QuestionGet Events from an COM Server Pin
Juergen_802-Oct-09 4:16
Juergen_802-Oct-09 4:16 
AnswerRe: Get Events from an COM Server Pin
Stuart Dootson2-Oct-09 5:46
professionalStuart Dootson2-Oct-09 5:46 
GeneralRe: Get Events from an COM Server Pin
Juergen_804-Oct-09 22:55
Juergen_804-Oct-09 22:55 
GeneralRe: Get Events from an COM Server Pin
Stuart Dootson5-Oct-09 0:00
professionalStuart Dootson5-Oct-09 0:00 
GeneralRe: Get Events from an COM Server Pin
Juergen_805-Oct-09 0:07
Juergen_805-Oct-09 0:07 
GeneralRe: Get Events from an COM Server Pin
Stuart Dootson5-Oct-09 0:15
professionalStuart Dootson5-Oct-09 0:15 
GeneralRe: Get Events from an COM Server Pin
Juergen_805-Oct-09 4:05
Juergen_805-Oct-09 4:05 
GeneralRe: Get Events from an COM Server Pin
Stuart Dootson5-Oct-09 4:19
professionalStuart Dootson5-Oct-09 4:19 
GeneralRe: Get Events from an COM Server Pin
Juergen_808-Oct-09 2:36
Juergen_808-Oct-09 2:36 
GeneralRe: Get Events from an COM Server Pin
Stuart Dootson8-Oct-09 7:44
professionalStuart Dootson8-Oct-09 7:44 
AnswerRe: Get Events from an COM Server Pin
Juergen_802-Nov-09 2:49
Juergen_802-Nov-09 2:49 
QuestionHow to update DOM in IE by using IHTMLDocument , and IHTMLElement Pin
am 20091-Oct-09 7:17
am 20091-Oct-09 7:17 
QuestionGetting Excel sheet names Pin
gtag1-Oct-09 1:01
gtag1-Oct-09 1:01 
Hi,

I am using following imports:

//Mircorsoft Office Objects
#import \
      "C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\mso.dll"\
      rename("DocumentProperties", "DocumentPropertiesXL")\
      rename("RGB", "RBGXL")

//Microsoft VBA Objects
#import \
      "C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\vbe6ext.olb"

//Excel Application Objects

using namespace Office;

#import "C:\Program Files (x86)\Microsoft Office\Office12\EXCEL.EXE"\
      rename("DialogBox", "DialogBoxXL") rename("RGB", "RBGXL")\
      rename("DocumentProperties", "DocumentPropertiesXL")\
      rename("ReplaceText", "ReplaceTextXL")\
      rename("CopyFile", "CopyFileXL")\
      exclude("IFont", "IPicture") no_dual_interfaces


Excel::_ApplicationPtr XL;
Excel::_WorkbookPtr book;
Excel::_WorksheetPtr sheet;

By using for loop ,able to get all workbook names.Using following code iterating through item, getting all workbook names.

book = XL->Workbooks->Item[1];

In case of worksheet, i am not getting the name of worksheet.There is no such option as workbook.

Able to point to particular sheet, but name option is not there.
sheet = XL->Workbooks->Item[1]->Sheets->Item[1];

I want to retrieve whole list of worksheets present in workbook.

Googled but I didn't get any clue.

If there is any option, please give me clue.

Thanks in advance.

Gtag.
AnswerRe: Getting Excel sheet names Pin
Stuart Dootson1-Oct-09 22:16
professionalStuart Dootson1-Oct-09 22:16 
GeneralRe: Getting Excel sheet names [modified] Pin
gtag2-Oct-09 6:17
gtag2-Oct-09 6:17 
GeneralRe: Getting Excel sheet names Pin
Stuart Dootson2-Oct-09 8:59
professionalStuart Dootson2-Oct-09 8:59 
GeneralRe: Getting Excel sheet names Pin
gtag2-Oct-09 23:53
gtag2-Oct-09 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.