Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how i can accept formatting Changes

HTML
<w:tbl xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
  <w:tblPr>
    <w:tblW w:w="0" w:type="auto" />
    <w:tblBorders>
      <w:top w:val="single" w:color="000000" w:sz="4" w:space="0" />
      <w:left w:val="single" w:color="000000" w:sz="4" w:space="0" />
      <w:bottom w:val="single" w:color="000000" w:sz="4" w:space="0" />
      <w:right w:val="single" w:color="000000" w:sz="4" w:space="0" />
      <w:insideH w:val="single" w:color="000000" w:sz="4" w:space="0" />
      <w:insideV w:val="single" w:color="000000" w:sz="4" w:space="0" />
    </w:tblBorders>
    <w:tblLook w:val="04A0" />
    <w:tblPrChange w:author="g" w:date="2015-07-16T18:39:00Z" w:id="12">
      <w:tblPr>
        <w:tblW w:w="0" w:type="auto" />
        <w:tblBorders>
          <w:top w:val="single" w:color="000000" w:sz="4" w:space="0" />
          <w:left w:val="single" w:color="000000" w:sz="4" w:space="0" />
          <w:bottom w:val="single" w:color="000000" w:sz="4" w:space="0" />
          <w:right w:val="single" w:color="000000" w:sz="4" w:space="0" />
          <w:insideH w:val="single" w:color="000000" w:sz="4" w:space="0" />
          <w:insideV w:val="single" w:color="000000" w:sz="4" w:space="0" />
        </w:tblBorders>
        <w:tblLook w:val="04A0" />
      </w:tblPr>
    </w:tblPrChange>
  </w:tblPr>
</w:tbl>


i tried bellow code but didn't worked for me

C#
byte[] byteArray = File.ReadAllBytes(fileName);
            using (MemoryStream memoryStream = new MemoryStream())
            {
                memoryStream.Write(byteArray, 0, byteArray.Length);
                using (WordprocessingDocument wordDoc =
                    WordprocessingDocument.Open(memoryStream, true))
                {
                    RevisionAccepter.AcceptRevisions(wordDoc);
                                    }
            }




please help...
Posted
Updated 16-Jul-15 20:34pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900