Click here to Skip to main content
15,917,971 members
Home / Discussions / C#
   

C#

 
GeneralRe: XML Version Pin
Rijz8-Feb-08 1:52
Rijz8-Feb-08 1:52 
Questiondatagridview Pin
avvaru.murali7-Feb-08 22:09
avvaru.murali7-Feb-08 22:09 
QuestionMultiple page printing Pin
kenwen7-Feb-08 21:56
kenwen7-Feb-08 21:56 
GeneralRe: Multiple page printing Pin
electriac8-Feb-08 0:54
electriac8-Feb-08 0:54 
GeneralRe: Multiple page printing Pin
kenwen8-Feb-08 8:30
kenwen8-Feb-08 8:30 
Generalifilter Pin
justintimberlake7-Feb-08 21:27
justintimberlake7-Feb-08 21:27 
GeneralRe: ifilter Pin
Pete O'Hanlon7-Feb-08 21:46
mvePete O'Hanlon7-Feb-08 21:46 
GeneralRe: ifilter Pin
justintimberlake7-Feb-08 22:00
justintimberlake7-Feb-08 22:00 
ya i read that and this is what i got
private void getptopr()
{
try
{
string _fileName = "c:\\11.doc";
if (!System.IO.File.Exists(_fileName))
{
Console.WriteLine("no file ");
return;
}


IFilter iFilter = null;
int res = LoadIFilter(_fileName, null, ref iFilter);

IFILTER_INIT grfFlag =

IFILTER_INIT.IFILTER_INIT_APPLY_INDEX_ATTRIBUTES |
IFILTER_INIT.IFILTER_INIT_APPLY_OTHER_ATTRIBUTES|
IFILTER_INIT.IFILTER_INIT_INDEXING_ONLY;
IFILTER_FLAGS pdwFlags;

iFilter.Init(grfFlag, 0, IntPtr.Zero, out pdwFlags);
int bufferSize = 65536;
StringBuilder buffer = new StringBuilder( bufferSize, bufferSize );

IFilterReturnCodes scode = IFilterReturnCodes.S_OK;
STAT_CHUNK chunkStatus = new STAT_CHUNK();
scode = iFilter.GetChunk(out chunkStatus);

while (scode == IFilterReturnCodes.S_OK)
{



if (chunkStatus.flags == CHUNKSTATE.CHUNK_VALUE )
{
//iFilter.GetValue(
PROPVARIANT pvValue = new PROPVARIANT();
IntPtr ptrValue = Marshal.AllocHGlobal(Marshal.SizeOf(pvValue));
Marshal.StructureToPtr(pvValue, ptrValue, false);
iFilter.GetValue(ref ptrValue);
PropVariant pv = (PropVariant)Marshal.PtrToStructure(ptrValue, typeof(PropVariant));
if (chunkStatus.attribute.psProperty.propid == 4 && pv.variantType == 31)
{
string title = Marshal.PtrToStringUni(pv.pointerValue);
Console.WriteLine(Marshal.PtrToStringUni(chunkStatus.attribute.psProperty.lpwstr) + "dddd " + title);
}
else if (chunkStatus.attribute.psProperty.propid == 2 && pv.variantType == 31) // author
{
string author = Marshal.PtrToStringUni(pv.pointerValue);
Console.WriteLine(Marshal.PtrToStringUni(chunkStatus.attribute.psProperty.lpwstr) + " eeee " + author);
}
Console.WriteLine((chunkStatus.attribute.psProperty.lpwstr) + "new man --> " + Marshal.PtrToStringUni(pv.pointerValue));
//foreach(int myint in

//scode = iFilter.GetChunk(out chunkStatus);
}
// Console.WriteLine("first chunk called");
scode = iFilter.GetChunk (out chunkStatus);
}

}
catch (Exception ex)
{
Console.WriteLine(" Exception " + ex.Message);
}
}


but all in vain never setis fied this condt if (chunkStatus.flags == CHUNKSTATE.CHUNK_VALUE )
GeneralDataBinding + DataTable as DataSource - very strange behaviour Pin
El'Cachubrey7-Feb-08 21:12
El'Cachubrey7-Feb-08 21:12 
GeneralRe: DataBinding + DataTable as DataSource - very strange behaviour Pin
Ravenet7-Feb-08 21:29
Ravenet7-Feb-08 21:29 
Generalconvert XML to HTML Pin
marky7777-Feb-08 19:51
marky7777-Feb-08 19:51 
GeneralRe: convert XML to HTML Pin
Joachim Kerschbaumer7-Feb-08 20:41
Joachim Kerschbaumer7-Feb-08 20:41 
Generalembed cursor Pin
Try7-Feb-08 19:10
Try7-Feb-08 19:10 
AnswerRe: embed cursor Pin
Vikram A Punathambekar7-Feb-08 19:33
Vikram A Punathambekar7-Feb-08 19:33 
GeneralRe: embed cursor Pin
Try7-Feb-08 20:04
Try7-Feb-08 20:04 
GeneralRe: embed cursor Pin
Try7-Feb-08 21:05
Try7-Feb-08 21:05 
GeneralMYOB Pin
the_smiths7-Feb-08 19:05
the_smiths7-Feb-08 19:05 
QuestiontoolStrip bug? Pin
Harvey Saayman7-Feb-08 19:04
Harvey Saayman7-Feb-08 19:04 
GeneralRe: toolStrip bug? Pin
Gareth H7-Feb-08 22:45
Gareth H7-Feb-08 22:45 
GeneralRe: toolStrip bug? Pin
Harvey Saayman7-Feb-08 23:40
Harvey Saayman7-Feb-08 23:40 
GeneralMove drawing and Copy Drawing in a Drawing Editor Pin
a_david1237-Feb-08 18:45
a_david1237-Feb-08 18:45 
QuestionDos command Pin
Smithakrishnan7-Feb-08 18:33
Smithakrishnan7-Feb-08 18:33 
GeneralRe: Dos command Pin
Joachim Kerschbaumer7-Feb-08 20:36
Joachim Kerschbaumer7-Feb-08 20:36 
QuestionHow to make this code to debug.... Pin
NarVish7-Feb-08 17:39
NarVish7-Feb-08 17:39 
AnswerRe: How to make this code to debug.... Pin
Vikram A Punathambekar7-Feb-08 18:28
Vikram A Punathambekar7-Feb-08 18:28 

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.