Skip to content

whitty/win32olerot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis
--------

So far only built using VS.NET 2005 - your mileage may vary

> ruby extconf.rb
> nmake
> ruby tests/tc_*.rb    # TODO - tests don't do anything
> nmake install

Example
-------

require 'win32olerot'

rot = WIN32OLE::RunningObjectTable.new

my_doc_path = 'path/to/my.doc'

if rot.is_running?(my_doc_path) then
  # document is open, connect to running MS-Word instance
  my_doc = WIN32OLE.connect('my_doc_path')
end

...

open_documents = rot.select {|x| x =~ /.doc$/}
print "These documents are open:\n  "
puts open_documents.join("\n  ")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published