generate_propputref_methods

generate_propputref_methods(klass, io = STDOUT) Instance Public methods

ole_classes

ole_classes(typelib) Instance Public methods

codepage

WIN32OLE.codepage Class Public methods Returns current codepage. WIN32OLE.codepage # => WIN32OLE::CP_ACP

codepage=

WIN32OLE.codepage = CP Class Public methods Sets current codepage. The ::codepage is initialized according to Encoding.default_internal. If Encoding.default_internal is nil then ::codepage is initialized according to Encoding.default_external. WIN32OLE.codepage = WIN32OLE::CP_UTF8 WIN32OLE.codepage = 65001

connect

WIN32OLE.connect( ole ) -â aWIN32OLE Class Public methods Returns running OLE Automation object or WIN32OLE object from moniker. 1st argument should be OLE program id or class id or moniker. WIN32OLE.connect('Excel.Application') # => WIN32OLE object which represents running Excel.

const_load

WIN32OLE.const_load( ole, mod = WIN32OLE) Class Public methods Defines the constants of OLE Automation server as mod's constants. The first argument is WIN32OLE object or type library name. If 2nd argument is omitted, the default is WIN32OLE. The first letter of Ruby's constant variable name is upper case, so constant variable name of WIN32OLE object is capitalized. For example, the 'xlTop' constant of Excel is changed to 'XlTop' in WIN32OLE. If the first letter of constant variab

create_guid

WIN32OLE.create_guid Class Public methods Creates GUID. WIN32OLE.create_guid # => {1CB530F1-F6B1-404D-BCE6-1959BF91F4A8}

locale

WIN32OLE.locale â locale id. Class Public methods Returns current locale id (lcid). The default locale is LOCALE_SYSTEM_DEFAULT. lcid = WIN32OLE.locale

locale=

WIN32OLE.locale = lcid Class Public methods Sets current locale id (lcid). WIN32OLE.locale = 1033 # set locale English(U.S) obj = WIN32OLE_VARIANT.new("$100,000", WIN32OLE::VARIANT::VT_CY)

new

WIN32OLE.new(server, [host]) â WIN32OLE object Class Public methods Returns a new WIN32OLE object(OLE Automation object). The first argument server specifies OLE Automation server. The first argument should be CLSID or PROGID. If second argument host specified, then returns OLE Automation object on host. WIN32OLE.new('Excel.Application') # => Excel OLE Automation WIN32OLE object. WIN32OLE.new('{00024500-0000-0000-C000-000000000046}') # => Excel OLE Automation WIN32OLE object