On Jun 9, 6:45   ᮮ 
> thanks... that was very helpful... in the same way is there any way to
> parse word documents with ruby...
> --
> Posted viahttp://www.ruby-forum.com/.

I do not know what do you mean by "parse" but if you are accessing
Word document through Office automation you should check
http://msdn.microsoft.com/en-us/library/bb726436.aspx where you can
find documentation about Word Object Model with all classes and
interfaces which you can use through win32ole in Ruby. You can also
check my post about Outlook automation in Ruby at:
http://pragmaticdevnotes.wordpress.com/2008/12/17/with-a-little-help-from-ruby/.

Approach is quite similar so you only need to read Office automation
reference and find exactly what you need.

Regards,
Bosko