るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.029秒)
トップページ > クエリ:nil[x] > クエリ:password[x] > クエリ:invoke[x]

別のキーワード

  1. _builtin nil?
  2. nilclass nil?
  3. object nil?
  4. _builtin nil
  5. object nil

ライブラリ

クラス

検索結果

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...