192件ヒット
[101-192件を表示]
(0.068秒)
ライブラリ
-
io
/ console (12) -
net
/ ftp (12) -
net
/ pop (12) -
net
/ smtp (12) - win32ole (144)
クラス
- IO (12)
-
Net
:: FTP (12) -
Net
:: POP3 (12) -
Net
:: SMTP (12) - WIN32OLE (120)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
キーワード
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
default
_ event _ sources (12) - each (12)
- handler= (12)
- invoke (12)
-
ole
_ free (12) -
ole
_ func _ methods (12) -
ole
_ method (12) -
ole
_ method _ help (12) -
ole
_ respond _ to? (12) - raw (12)
-
set
_ debug _ output (12)
検索結果
先頭5件
-
WIN32OLE
# each {|i| . . . } -> () (7.0) -
オブジェクトの列挙インターフェイスを呼び出してアイテム単位にブロックを 実行します。
...イスをサポートしてい
ない場合に通知します。
excel = WIN32OLE.new('Excel.Application')
book = excel.workbooks.add
sheets = book.worksheets(1)
cells = sheets.cells("A1:A5")
cells.each do |cell|
cell.value = 10
end
excel.Quit... -
WIN32OLE
# ole _ free -> () (7.0) -
selfが参照するCOMオブジェクトを解放します。
...クトに対
する操作は行えません。
excel = WIN32OLE.new('Excel.Application')
excel.ole_free # オブジェクトの解放
excel.Quit #=> RuntimeError (failed to get Dispatch Interface)
通常は利用されなくなったWIN32OLEオブジェクトはGCのタイミングで... -
WIN32OLE
# ole _ func _ methods -> [WIN32OLE _ METHOD] (7.0) -
オブジェクトのファンクション情報をWIN32OLE_METHODの配列として返し ます。
...ます。
excel = WIN32OLE.new('Excel.Application')
excel.visible = true
excel.ole_func_methods.each do |fun|
if fun.name.upcase == 'QUIT'
excel._invoke(fun.dispid, [], [])
break
end
end
@see WIN32OLE#ole_methods, WIN32OLE#ole_get_methods,
WIN32OLE#ole_put_... -
WIN32OLE
# ole _ method(method) -> WIN32OLE _ METHOD (7.0) -
メソッド名を指定して対応するWIN32OLE_METHODオブジェクトを取得しま す。
...meError 指定したメソッド名が未定義あるいは型情報ラ
イブラリ(TypeLib)が提供されていない場合など
に発生します。
excel = WIN32OLE.new('Excel.Application')
method = excel.ole_method_help('Quit')... -
WIN32OLE
# ole _ method _ help(method) -> WIN32OLE _ METHOD (7.0) -
メソッド名を指定して対応するWIN32OLE_METHODオブジェクトを取得しま す。
...meError 指定したメソッド名が未定義あるいは型情報ラ
イブラリ(TypeLib)が提供されていない場合など
に発生します。
excel = WIN32OLE.new('Excel.Application')
method = excel.ole_method_help('Quit')... -
WIN32OLE
# ole _ respond _ to?(name) -> bool (7.0) -
指定したメソッドをオブジェクトがサポートしているか調べます。
...ド名を文字列またはシンボルで指定します。
@return nameで指定したメソッドをオブジェクトが提供していれば真を返します。
excel = WIN32OLE.new('Excel.Application')
excel.ole_respond_to?(:quit) #=> true
excel.ole_respond_to?(:exit) #=> false... -
WIN32OLE
_ EVENT # handler=(obj) -> () (7.0) -
イベント処理を実行するオブジェクトを登録します。
...event.handler = IeHandler.new
ie.Navigate2 'http://www.ruby-lang.org/ja/'
loop do
break if event.handler.completed
WIN32OLE_EVENT.message_loop
end
ie.Quit
WIN32OLE_EVENT#on_eventなどの呼び出しでブロックが登録されている場
合、そちらが優先されます。... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (7.0) -
型が持つソースインターフェイスを取得します。
...ndler = WebEvent.new
ctl.navigate2 'http://www.ruby-lang.org/'
loop do
break if evt.handler.completed
WIN32OLE_EVENT.message_loop
end
ctl.Quit
このプログラムを実行するとWindows7のIE8環境では以下のような出力を得られ
ます。
2010-10-06 22:33:54 +0900: Prope...