in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

custom metadatas and pdf format

Last post 06-25-2008 6:51 AM by Rafik. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-25-2008 6:51 AM

    • Rafik
    • Not Ranked
    • Joined on 06-25-2008

    custom metadatas and pdf format

    I'm using this code to search documents using FullTextSqlQuery:

    strQueryText = "SELECT ID, workid, write, size,TitleDoc  FROM SCOPE() WHERE \"scope\"='centredoc' AND isdocument=1 AND FileExtension<>'ASPX' AND StatusDoc<>2"

    FullTextSqlQuery FRequest = new FullTextSqlQuery(ServerContext.Current);

                FRequest.QueryText = strQueryText;
                FRequest.ResultTypes |= ResultType.RelevantResults;
                ResultTableCollection resultTbls = FRequest.Execute();

    - ID, workid, write and size : antive fields

    - TitleDoc: a property mapped to a custom field[ this custom field inhirt from SPFieldText.

    When i execute this code:

     -For doc and ppt documents i get all métadatas.

    - For pdf documents only TitleDoc is always empty. Did this problem occur for u? can u help me to fix it?

    thank u

Page 1 of 1 (1 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.