I am using function excel sdk 2007 function "xlcWorkbookSelect" to
move to another sheet.
But it is not returning response zero which is for success and I am
not able to move to another sheet.
Following is code which i am using.
LPXLOPER12 xlFileOpenSheet;
xlFileOpenSheet = (LPXLOPER12) malloc(sizeof(XLOPER12));
xlFileOpenSheet->val.str = (WCHAR*)malloc(sizeof(WCHAR)*255);
xlFileOpenSheet->xltype = xltypeStr;
swprintf(xlFileOpenSheet->val.str,(WCHAR *)" %s",tempNode->m_cellinfo-
>strWorkSheetName);
xlFileOpenSheet->val.str[0] = wcslen(xlFileOpenSheet-
>val.str );
int fx = Excel12f(xlcEcho,0,1,&xlcCommandSetBoolValue);
fx = Excel12f(xlcWorkbookSelect,0,1,xlFileOpenSheet);
fx = Excel12f(xlFree,0,1,xlFileOpenSheet);