PDA

View Full Version : Comparing Word files



thunderbirdje
November 12th, 2009, 05:18 PM
Hi Everyone,

I would like to sketch my situation... I am teaching Microsoft Word 2007 (sorry about that... but I refer to open source as well :)). You can imagine that with a a large amount of students (about 200) I have to open 200 times the same Word-file to compare and check if (for example) the applied font is correct.

I was wondering of there is a possibility to compare Word files on layout to a master file? I would prefer php (if possible) because I developed a small exercise site (multiple choice quiz etc.) in php, so it would be great if I can integrate that into the training site.

I am able to compare the text of the Word file, however it is the layout (formatting) which I don't know if that is able? You can compare files in Word and show the differences... If that would be possible in php, to generate such a difference file (you can with C# .NET access the Word COM object model...) but I do like php more :D I hope some can help me? Maybe there is some open source framework in php which I don't know the existence of it?

Thanks I lot, and I hope I can help others with this question too! I am always prepared to share my experience or if I can find a solution...

myrtle1908
November 13th, 2009, 12:07 AM
If the compare functionality is exposed by the Word COM server (which you say it is eg. .NET/C#) then any COM aware language can utilize. PHP can talk COM so you should have no problem eg.



$word = new COM("Word.Application");
# ... and so on ...