Click here to Skip to main content
15,394,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow copy content of cells Pin
igor3815-Apr-08 23:12
Memberigor3815-Apr-08 23:12 
GeneralRe: How copy content of cells Pin
Iain Clarke, Warrior Programmer15-Apr-08 23:15
MemberIain Clarke, Warrior Programmer15-Apr-08 23:15 
QuestionRe: How copy content of cells Pin
Rajesh R Subramanian15-Apr-08 23:18
professionalRajesh R Subramanian15-Apr-08 23:18 
AnswerRe: How copy content of cells Pin
ThatsAlok30-Jun-09 23:09
MemberThatsAlok30-Jun-09 23:09 
GeneralRe: How copy content of cells Pin
Hamid_RT16-Apr-08 0:58
MemberHamid_RT16-Apr-08 0:58 
GeneralRe: How copy content of cells Pin
ThatsAlok30-Jun-09 23:09
MemberThatsAlok30-Jun-09 23:09 
GeneralRe: How copy content of cells Pin
David Crow16-Apr-08 3:09
MemberDavid Crow16-Apr-08 3:09 
QuestionProblem while using IFilter for indexing Pin
Javed Akhtar Ansari15-Apr-08 23:06
MemberJaved Akhtar Ansari15-Apr-08 23:06 
Hi Dear,
I am trying to index metadata for doc file for indexing purpose using IFilter implementation.
I have the OffFilter.dll which implements IFilter for office documents like .doc etc.

I am able to load the filter but the problem is it is only retrieving the contents of the file. I want other data like size of the file etc which it is not returning.

Below is the code snippet
===============================
CComQIPtr<ifilter> pFilterText;

//Initialize the COM LIB
if ( FAILED( ::CoInitialize( NULL ) ) )
return ;


HRESULT hr;

CLSID clsId;

IFilter * pFilter;
WCHAR * cPath = _T("D:\\Projects\\NBS\\Development items for Oasys post release 1.0.0.46 (RasterX issues).doc");
hr = ::LoadIFilter(cPath, NULL, (void**)&pFilter ); //LoadIFilter uses a means such as CoCreateInstance() to create the filter and then calls IPersistFile::Load with the name of the specified file.
if ( FAILED( hr ) )
{
return ;
}

CComQIPtr<ipersistfile> pPersistFile( pFilter );


SCODE ret = 0;
FULLPROPSPEC *fullPropSpec1, *fullPropSpec2;
fullPropSpec1 = new FULLPROPSPEC;
fullPropSpec2 = new FULLPROPSPEC;

GUID guidPropSet = PSGUID_STORAGE;
fullPropSpec1->guidPropSet = guidPropSet;
fullPropSpec1->psProperty.ulKind = PRSPEC_PROPID;
fullPropSpec1->psProperty.propid = PID_STG_CONTENTS ;
fullPropSpec2->guidPropSet = guidPropSet;
fullPropSpec2->psProperty.ulKind = PRSPEC_PROPID;
fullPropSpec2->psProperty.propid = PID_STG_SIZE;

FULLPROPSPEC* pArrFPS [] = {fullPropSpec1, fullPropSpec2};

ULONG flags = 0;
ULONG grFlags = IFILTER_INIT_CANON_PARAGRAPHS |
IFILTER_INIT_APPLY_INDEX_ATTRIBUTES |
IFILTER_INIT_HARD_LINE_BREAKS |
IFILTER_INIT_CANON_HYPHENS |
IFILTER_INIT_CANON_SPACES;
sizeof(FULLPROPSPEC);
ret = pFilter->Init(grFlags ,2 , *pArrFPS, &flags );

ATLASSERT( SUCCEEDED( ret ) );

STAT_CHUNK statChunk;
WCHAR szText[1024] =_T("");
ULONG lLength = 1024;
ret = 0;
CString str;
bool bDone = false;
while(1)
{
size_t s = sizeof(grFlags);
ret = pFilter->GetChunk( &statChunk );
if(statChunk.attribute.psProperty.propid == 12)
AfxMessageBox("Size retrived");
if(statChunk.attribute.psProperty.propid == 19)
AfxMessageBox("Content retrived");
}


I doubt I am passing wrong attributes to thr IFilter::Init() function.

Can anybody please help me?
Let me know if you need more info and a sample project also.

Javed A Ansari
Software Developer
Hyderabad, India

GeneralMigration of CORBA, Iona orbix 3.3 to Orbix 6.1 or 6.2 Pin
ptr_Electron15-Apr-08 22:58
Memberptr_Electron15-Apr-08 22:58 
QuestionOnLButtonDown process Pin
Llasus15-Apr-08 21:23
MemberLlasus15-Apr-08 21:23 
QuestionRe: OnLButtonDown process Pin
CPallini15-Apr-08 21:54
mveCPallini15-Apr-08 21:54 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:04
MemberLlasus15-Apr-08 22:04 
GeneralRe: OnLButtonDown process Pin
CPallini15-Apr-08 22:28
mveCPallini15-Apr-08 22:28 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:42
MemberLlasus15-Apr-08 22:42 
QuestionRe: OnLButtonDown process Pin
David Crow16-Apr-08 3:25
MemberDavid Crow16-Apr-08 3:25 
GeneralRe: OnLButtonDown process Pin
Llasus16-Apr-08 13:07
MemberLlasus16-Apr-08 13:07 
GeneralRe: OnLButtonDown process Pin
Naveen15-Apr-08 21:54
MemberNaveen15-Apr-08 21:54 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:11
MemberLlasus15-Apr-08 22:11 
GeneralRe: OnLButtonDown process Pin
Force Code15-Apr-08 23:45
MemberForce Code15-Apr-08 23:45 
GeneralRe: OnLButtonDown process Pin
Force Code15-Apr-08 23:49
MemberForce Code15-Apr-08 23:49 
GeneralRe: OnLButtonDown process Pin
Force Code16-Apr-08 0:31
MemberForce Code16-Apr-08 0:31 
GeneralRe: OnLButtonDown process Pin
Hamid_RT16-Apr-08 0:50
MemberHamid_RT16-Apr-08 0:50 
GeneralRe: OnLButtonDown process Pin
Llasus16-Apr-08 13:16
MemberLlasus16-Apr-08 13:16 
QuestionHow to check the admin/user previleges in Vista and XP Pin
Jiju_b15-Apr-08 21:22
MemberJiju_b15-Apr-08 21:22 
AnswerRe: How to check the admin/user previleges in Vista and XP Pin
Jijo.Raj15-Apr-08 22:40
MemberJijo.Raj15-Apr-08 22:40 

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.