Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl problem Pin
bhanu_85091-Apr-09 0:39
bhanu_85091-Apr-09 0:39 
GeneralRe: CListCtrl problem Pin
CPallini1-Apr-09 0:45
mveCPallini1-Apr-09 0:45 
GeneralRe: CListCtrl problem Pin
bhanu_85091-Apr-09 0:55
bhanu_85091-Apr-09 0:55 
GeneralRe: CListCtrl problem Pin
bhanu_85091-Apr-09 1:46
bhanu_85091-Apr-09 1:46 
GeneralRe: CListCtrl problem Pin
bhanu_85091-Apr-09 1:46
bhanu_85091-Apr-09 1:46 
QuestionUsing library built in VC 8.0 or VC 7.0 in Application built in VC6.0 Pin
tony_Udz31-Mar-09 23:40
tony_Udz31-Mar-09 23:40 
AnswerRe: Using library built in VC 8.0 or VC 7.0 in Application built in VC6.0 Pin
Stuart Dootson1-Apr-09 3:34
professionalStuart Dootson1-Apr-09 3:34 
QuestionHow can get rows in excel sheet? Pin
Le@rner31-Mar-09 23:17
Le@rner31-Mar-09 23:17 
Hi all,

i m using excel like this its works fine.
For example:

Start Excel

	Excel::_ApplicationPtr pApplication;	

if ( FAILED( pApplication.CreateInstance( _T("Excel.Application") ) ) )	
{
		Errorf( _T("Failed to initialize Excel::_Application!") );
		return;	
}


Load an Excel workbook

	_variant_t	varOption( (long) DISP_E_PARAMNOTFOUND, VT_ERROR );	
Excel::_WorkbookPtr pBook = pApplication->Workbooks->Open( dlgFile.m_szFileName, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption );


Get the first worksheet

Excel::_WorksheetPtr pSheet = pBook->Sheets->Item[ 1 ];


i want to know how many rows have data in sheet.

please tell me how can i get rows count.

thanks in advance

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: How can get rows in excel sheet? Pin
Stuart Dootson1-Apr-09 3:52
professionalStuart Dootson1-Apr-09 3:52 
GeneralRe: How can get rows in excel sheet? Pin
Le@rner1-Apr-09 19:14
Le@rner1-Apr-09 19:14 
Question[Message Deleted] Pin
Purish Dwivedi31-Mar-09 23:14
Purish Dwivedi31-Mar-09 23:14 
QuestionRe: Not detecting the language of Resource DLL Pin
CPallini1-Apr-09 0:49
mveCPallini1-Apr-09 0:49 
Answer[Message Deleted] Pin
Purish Dwivedi1-Apr-09 19:07
Purish Dwivedi1-Apr-09 19:07 
GeneralRe: Not detecting the language of Resource DLL Pin
CPallini2-Apr-09 1:40
mveCPallini2-Apr-09 1:40 
Questionfreeing up of resources after closing the window Pin
Deepu Antony31-Mar-09 23:12
Deepu Antony31-Mar-09 23:12 
AnswerRe: freeing up of resources after closing the window Pin
ThatsAlok1-Apr-09 19:16
ThatsAlok1-Apr-09 19:16 
QuestionQuestion about classes in C++ Pin
akirilov31-Mar-09 22:49
akirilov31-Mar-09 22:49 
AnswerRe: Question about classes in C++ Pin
Cedric Moonen31-Mar-09 22:52
Cedric Moonen31-Mar-09 22:52 
AnswerRe: Question about classes in C++ Pin
Stuart Dootson31-Mar-09 22:53
professionalStuart Dootson31-Mar-09 22:53 
AnswerRe: Question about classes in C++ Pin
Code-o-mat31-Mar-09 22:55
Code-o-mat31-Mar-09 22:55 
NewsRe: Question about classes in C++ Pin
akirilov31-Mar-09 23:10
akirilov31-Mar-09 23:10 
GeneralRe: Question about classes in C++ Pin
CPallini31-Mar-09 23:25
mveCPallini31-Mar-09 23:25 
JokeRe: Question about classes in C++ Pin
akirilov1-Apr-09 0:22
akirilov1-Apr-09 0:22 
GeneralRe: Question about classes in C++ Pin
Stuart Dootson1-Apr-09 3:31
professionalStuart Dootson1-Apr-09 3:31 
AnswerRe: Question about classes in C++ Pin
Rajesh R Subramanian1-Apr-09 1:38
professionalRajesh R Subramanian1-Apr-09 1:38 

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.