Compare and differentiate the contents in between versions - Document Library

I want to compare the version updates and  the content of a document which stored in document library using document version.
For example: one word document has 3 versions, 
Version 1.0 contents : Please
Version 2.0 contents : Please Help
Version 3.0 contents : Please Help Me
Now, either the difference of these version should be highlighted like Version 2.0 in Help, Version 3.0 as Help Me.
Need to generate a report of comparison between the document and display the difference in contents.
Thank you

Hi Karthik,
use the following:
http://blogs.msdn.com/b/ericwhite/archive/2008/06/14/openxmldiff-exe-a-utility-to-find-the-differences-between-two-open-xml-documents.aspx
or this
http://groupdocs.com/blog/groupdocs-comparison-for-net-c-sharp-diff-library-for-comparing-text-files
or this
http://msdn.microsoft.com/en-US/library/microsoft.office.tools.word.document.compare(v=VS.80).aspx
private void DocumentCompare()
object compareTarget = Word.WdCompareTarget.wdCompareTargetNew;
object addToRecentFiles = false;
this.Compare("C:\\Docs\\Sales1.doc", ref missing, ref compareTarget,
ref missing, ref missing, ref addToRecentFiles, ref missing,
ref missing);
Kind Regards,
John Naguib
Technical Consultant/Architect
MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Please remember to mark your question as answered if this solves your problem

Similar Messages

  • Visual Studio 2013 deploying incorrectly the content types of a document library

    Hello everyone. 
    I created a SharePoint farm solution in VS 2013. I add four content types (say, C1, C2, C3, C4, based on the Document content type) and I create a couple of document libraries (say, L1, L2). Now I add C1 and C2 to L1, and add C3 and C4 to L2. 
    When I deploy the solution from VS, I go to the site and found out that L1 has C1 and C2, as expected. However, L2 has C1 and C2 instead of C3 and C4. 
    I have reviewed for hours the xml files (Elements, Schema, etc.) and all IDs seem to be correct and all properties are in order. 
    Has anyone come across a problem like this? Any thoughts will be really appreciated, as I'm clueless and frustrated at this point, after hours of dealing with this problem. 
    Thanks in advance!
    Best regards
    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

    Hi Sohel, thanks for your reply. 
    No, I don't add them programmatically, I added the "Content Type" and "List" items to the VS solution. It generated some files, including Elements.xml and Schema.xml. Then I used the integrated VS designers to add the content types to
    the list. A very run-of-the-mill solution, I think, nothing too fancy. 
    One thing I noticed is that I created a feature, and everytime I add a new list, instead of using the existing feature, it creates a new one, which I delete, and then add the list to the existing feature using the designer. 
    Finally, something weird happened today. I opened my VS, opened the solution and there was several feature files created out of the blue by the VS. I thought something was messed up with the Visual Studio Online connection, but it happens anyway when working
    in disconnected mode. 
    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

  • How to compare the contents of two XML documents

    Hi all,
    I was trying to compare the contents of two xml documents, they are both validate for the same XML Schema. i was using the xmlunit to do this. but some how it doesn't work like what i have expected. for example:
    1.xml : <test><item>2</item><item>1</item></test>
    2.xml: <test><item>3</item><item>2</item><item>1</item></test>
    the result from XMLUnit is this two xmls are different, but it compares <item>2</item> with <item>3</item>, which i cannot find out where the real diiffs are.
    does anybody know how i can do this correct?
    best regards,
    tina

    I faced a similar problem in one of my projects and hence wrote my own comparator. Most comparators like ExamXML etc show XML as different if the nodes under a parent node occur in different seqeunce or a set of repeated nodes occur in different sequence. The comparator that I wrote gives you the flexibility to configure how to identify a node from a set of repeated nodes and is able to compare them successfully if they occur in any order. You can view the sample output at http://geocities.com/dheerendra_itbhu/TipsFromDheeru.html
    and contact me in case you need the source code.

  • Date fields and compare and get the later date of the fields

    I am trying to compare these date fields and compare and get the later date of the fields
    Tables are
    TABCASER
    TABCASER1
    EVCASERS
    Field
    Are
    TABCASER1.CASER_no
    The dates are to be compared and then get the records with the highest or latest date value.
    TABCASER1.CASERRECIEVEDDATE
    EVCASERS.FINALEVDATES
    EVCASERS.PUBLICATIONDATE
    EVCASERS.PUBLICATIONDATE
    TABCASER.COMPAREACCEPDATE
    I have this code but I am trying to figure out what it all means.
    I have several questions.
    1.
    1.     greatest it is used here to compare right? How do I then output this ? do I store it to a var (coldfusion) ultimately , I wish to send it to a page of records
    2.     is it necessary to use todate? And to_date? What does this do?
    3.     decode, is this necessary too. What does this do? NULL?
    4.     
    5.     
    6.     when I do get the query results how do I send it to coldsuion and out put to a display.
    Someone sent me this code.
    is there abetter way of doing this? To compare the dates and store in a var to display. thanks
    Here is my code below:
    Greatest(
         CASE
              WHEN INSTR(TABCASER1.CASER_no,'-CE') > 0 THEN
         decode(TABCASER1.CASERRECIEVEDDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER1.CASERRECIEVEDDATE)
                             WHEN INSTR(TABCASER1.CASER_no,'-ERNIE') > 0 THEN
         decode(EVCASERS.FINALEVDATES,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.FINALEVDATES)
                             WHEN INSTR(TABCASER1.CASER_no,'-MONIE') > 0 THEN
         decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
                             WHEN INSTR(TABCASER1.CASER_no,'-NADINE') > 0 THEN
         decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
                             ELSE
         decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE)
                        END
              ,decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE))
              between TO_DATE('#dateformat(form.startDate,"mm/dd/yyyy")#','MM/DD/YYYY') and TO_DATE('#dateformat(form.endDate,"mm/dd/yyyy")#','MM/DD/YYYY')
    is there abetter way of doing this? To compare the dates and store in a var to display. thanks

    Hi
    If you have date datatypes than:
    select
    greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
    from TABCASER, TABCASER1, EVCASERS
    where ...-- join and other conditions
    1. greatest is good enough
    2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
    3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
    6. to format the date for display use to_char function with format modell as in the to_date function.
    Ott Karesz
    http://www.trendo-kft.hu

  • Search for a tag in xml and modify the content

    Hi,
    I am quite new to using xml db and i want to know how to search a xml, modify a tag value inside xml and replace the content in xml.
    Please help me to find a solution for this.
    Regards,
    Sprightee

    Hi,
    First important thing : give your database version (SELECT * FROM v$version).
    Please also provide some sample data :
    - a typical XML document you're working with (or abridged version)
    - explain what change(s) you want to do, or give expected output
    - if you're using a table to store the XML (which is preferred), give the DDL

  • Using PowerShell to Copy the content of a Word Document and Paste that content into a New Message in Outlook

    So, I'm a little new to PowerShell and I came across a PowerShell which allow me to copy the content od a spreadsheet, into the new message in Outlook 2007.  I have search and search on a way to do the same with a Word Document.  I would like to
    create a PowerShell Script that copies the content of a Word Document and paste that content in an email message.
    I am basing my script on this
    #Create and get my Word Obj
    $w1 = New-Object  -comobject Word.Application
    $w1.Visible = $True
    $UserWord = $w1.Workbooks.Open("C:\Users\hhhh\Documents\Powershell\test.docx")
    #create outlook Object
    $Outlook = New-Object  -comObject  Outlook.Application 
    $Mail = $Outlook.CreateItem(0)
    $Mail.SentOnBehalfOfName = "[email protected]"
    $Mail.Recipients.Add("[email protected]")
    #Add the text part I want to display first
    $Mail.Subject = "Test email"
    $Mail.Body = "My Comment on the Excel Spreadsheet"
    #Then Copy the Word using parameters to format it
    $Mail.Getinspector.WordEditor.Range().PasteExcelTable($true,$false,$false)
    #Then it becomes possible to insert text before
    $wdDoc = $Mail.Getinspector.WordEditor
    $wdRange = $wdDoc.Range()
    $Mail.Display()
    Any Help would be great!

    My requirements are the Word documents are a template of sorts.  The document will be changes prior to its email with some changes.  The other twist is that the customer might more that one recipients, and each recipient will have to have a separate
    email, with the same content of the word document. 
    For example: Say I'm doing maintenance. The Word doc might descript that maintenance, in a set format. Once save the script is run to generate 3 to 10 email with separate recipients with the body of the email containing what was in the Word document.

  • I have two Macs: an MBA and the new iMac.  Is there a way to have iTunes and all the content in it identical on both machines?

    I have two Macs: an MBA and the new iMac.  Is there a way to have iTunes and all the content in it identical on both machines?

    Yes you can copy the content to your new machine and use Home Sharing to keep the content identical
    Connect the two machines via an ethernet cable it is 3 times faster than Wifi. Turn wifi off on one machine to enforce ethernet connection
    In System Preferences, Sharing turn on File Sharing
    Then
    Copy the music/itunes folder from the Macbook pro to the music/ folder on the imac
    Both machines should now have the same library
    Disconnect H the ethernet cable
    Set up Home Sharing and under Settings at the bottom of the Home Sharing page. Select to transfer new purchases.
    Do the same on the other machine.
    Then when you r machines are connected by wifi and each time you start itunes it will transfer your new purchases
    Setting up home sharing

  • How to import and make the content of the original PDF document editable and preserves the pdf appearance and retains existing fields and formatting in LiveCycle

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

  • I'd like to sync my iTouch and iPad with my PC, and have the content (both iTunes and uploaded music) on the devices override the content on the PC, but cannot seem to find a option to do that. Can anyone help me?

    I had to have my PC wiped clean and the OS re-loaded. I thought I backed up everything  on my iTouch and iPad correctly, but when I try to sync, I'm getting a message that if I continue with the sync, I will lose everything on my device. I'd like to sync and have the content (both iTunes purchased music/apps and uploaded music) override the content on my PC, but am unable to find a way to do that. I have the first gen iTouch that does not support iCloud. Can anyone help?

    My question is, can I listen to all the audio that come out from the ipad (movies online, games, Goear…) or only to the music from iTunes library?
    On the iPad you can stream videos, photos, or music from the Video, Photos, Music, and YouTube apps to an Apple TV OR just stream music to an AirPort Express Base Station.

  • How can i check messages sent to device through my Verizon account online? i want to open the messages and see the contents.

    How can i check messages sent to device through my Verizon account online? i want to open the messages and see the contents.

        I know it's beneficial to be able to check your message content ArmyQueer. Verizon messages offers a wide variety of convenient options to manage messaging. What make and model device is this? When did you download the application on it? Please be aware you will only be able to see content after the app had been downloaded and installed. Content prior to the app being active will not be available. Here's a link with additional info. http://vz.to/1k3gBxd
    JonathanK_VZW
    VZWSupport
    Follow Us on Twitter@VZWSupport

  • Read from .txt file and output the content as two arrays

    I am using the contoured move to control the x-y stage. The trajectory datas for x and y axis are generated using my interpolation program and it is stored in a .txt file as two columns. What I want to do is read .txt file and output the content of this file as two arrays. Is there anyone has any ideas? Thanks, the .txt file is attached.
    Attachments:
    R.75.txt ‏172 KB

    Hi Awen,
    This is quite easy to do, you can merely use the "read from spreadsheet file" function to get a 2D array (2 columns and n rows) and then use the index array function to get whatever row/colums you want..
    Hope the attached VI helps you
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    read sprdsheet file.vi ‏27 KB

  • Is there a way I can take a cassette played and into my iPhone and plug it and record the contents of the casstte onto my device?

    Is there a way I can take a cassette played and into my iPhone and plug it and record the contents of the casstte onto my device?

    no

  • In Numbers, I copied a worksheet and deleted the contents. The sheet I copied from has a header, I can't see it or bring it up when I'm working but it appears when I print the sheet. How do I delete it?

    In Numbers, I copied a worksheet and deleted the contents. The sheet I copied has a header.  I can't see it or bring it up when I'm working but it appears when I print the sheet. How do I delete the header?

    Hi Cristina,
    Headers are not shown in normal view.
    Menu > File > Print to open Print View.
    Hover the cursor over the Header to see the outline. Click and delete.
    Regards,
    Ian.

  • Encore CS5 won't open after I downloaded and installed the content as directed. The top of the project opens at the bottom of the screen, freezes and is inaccessable.

    Encore was launching and working fine but,as many others before me, I had no content in the Library panel and downloaded the content files from the link Adobe provides. When I relaunched Encore it froze at the bottom of my screen. I have restarted the application, the computer, and even deleted the preferences file but Encore still freezes. I am using  a Mac, OSX  ver. 10.6.8., 6 gigs of ram. Any help would be appreciated.

    Are you sure you meant to write CS5?
    My understanding is that CS5 had a "self contained" installer that installed everything, and it was CS6 that required extra downloads from Adobe

  • HT1473 I have a large external collection and would like to import a select folder to itunes to create a playlist.  Is there a way to import the folder without mixing the contents with my large itunes library?

    I have a large external collection and would like to import a select folder to itunes to create a playlist.  Is there a way to import the folder without mixing the contents with my large itunes library?
    I'm trying to avoid having to fish through the thousands of songs already in my itunes library to create a playlist from the songs in the windows file that I've already selected.

    You're welcome.
    tt2

Maybe you are looking for

  • Google calendar sync in N9

    It was about two years ago when I got Google calendars work in my N9. Recently I had to take device to repair and I thought it was good idea to do a full reset to the device. Now I can't remember if there were some tricks to make the sync work. Simpl

  • Bank Accounts and House bank info

    Hi Friends, We use ECC6.0 version. I have created GL accts seperate for Main bank, Bank P and Bank R I have created Bank Key as well. In FI12 - is it mandatory that i create seperate house bank ID's - seperate for main, BP and BR - why? Many Thanks S

  • Adding voice channels to a trunkgroup

    I have this: controller T1 2/0 framing esf linecode b8zs pri-group timeslots 1-24 description Connection to Switch T1 2 controller T1 2/1 framing esf linecode b8zs pri-group timeslots 1-24 description Conecction to the switch T1 18 It happens that so

  • Dreamweaver CC 2014.1 design view gone - what next?!

    First Adobe deprecates server behaviors, now they are removing design view?!  I am stunned.  Design View is the SOLE reason I use Dreamweaver!  (It's more of a quick code navigator in split view.) Live view has NEVER worked in a practical and usable

  • Sorting movies in iPhoto smart album

    I created an album of our summer vacation which includes photos and video clips.  I would like to separate out the video clips and stitch them together.  Either in iMovie or otherwise.   Any thoughts on how to separate out the movies?  I tried the Ne