none
The content of .docx file cannot be extracted by Microsoft IFilters RRS feed

Answers

  • Hi randolphxl,

    Thanks for posting in the MSDN Forum.

    What's your show confirm my guess. That you have omit many Parts of the docx file. I would recommend you create your document via a docx template which created via Word and let's see whether it will work fine for IFliter.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us


    Wednesday, October 31, 2012 7:24 AM
    Moderator

All replies

  • Hi randolphxl,

    Thanks for posting in the MSDN Forum.

    I would recommend your post your code which you used to create document here. It's based on my experience that Open Xml will omit the not necessary part of the document, and I'm wondering whether IFilter need to access the information in the specific part which omitted via you code.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Monday, October 29, 2012 6:51 AM
    Moderator
  • Thanks for the reply. The code I use is as following:

    using (WordprocessingDocument doc = WordprocessingDocument.Create(@"XX\test2.docx", DocumentFormat.OpenXml.WordprocessingDocumentType.Document))
          {
            doc.AddMainDocumentPart();
            Body body = new Body();
            Paragraph paragraph = body.AppendChild(new Paragraph());
            Run run = paragraph.AppendChild(new Run());
            run.AppendChild(new Text("Hello World!"));
    
            doc.MainDocumentPart.Document = new DocumentFormat.OpenXml.Wordprocessing.Document(body);
            doc.MainDocumentPart.Document.Save();
          }

    Monday, October 29, 2012 5:17 PM
  • Hi randolphxl,

    Thanks for posting in the MSDN Forum.

    What's your show confirm my guess. That you have omit many Parts of the docx file. I would recommend you create your document via a docx template which created via Word and let's see whether it will work fine for IFliter.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us


    Wednesday, October 31, 2012 7:24 AM
    Moderator