11件ヒット
[1-11件を表示]
(0.029秒)
検索結果
-
WIN32OLE
# invoke(name , *args) -> object | nil (18232.0) -
メソッド名を指定してオブジェクトのメソッドを呼び出します。
...の場合はnil。
@raise WIN32OLERuntimeError オートメーションサーバの呼び出しに失敗しました。
理由はメッセージのHRESULTを調べてください。
excel = WIN32OLE.new('Excel.Application')
workbook = excel.workbooks.invoke(:Open, :Fi......users\\public\\test.xml',
:ReadOnly => true,
:Password => 'secret')
excel.invoke(:Quit)
このリストは、以下の記述と同等です。
excel = WIN32OLE.new('Excel.Application')
workbook = excel.work......books.Open(:FileName => 'c:\\users\\public\\test.xml',
:ReadOnly => true,
:Password => 'secret')
excel.Quit...