[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>

Okay. I've got Ruby compiling. I'm attempting to get everything in

17 messages 2006/01/05
[#7058] Re: More on VC++ 2005 — nobuyoshi nakada <nobuyoshi.nakada@...> 2006/01/06

Hi,

[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)

Hi,

22 messages 2006/01/10
[#7097] Re: mathn: ugly warnings — Daniel Berger <Daniel.Berger@...> 2006/01/10

Hadmut Danisch wrote:

[#7098] Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/10

Daniel Berger wrote:

[#7118] Re: Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/12

*Dean Wampler *<deanwampler gmail.com> writes:

[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>

Hello,

23 messages 2006/01/28
[#7228] Re: Question about massive API changes — Caleb Tennis <caleb@...> 2006/01/28

>

[ ruby-Bugs-3237 ] win32ole bug 'method missing': DisableAutoMacros (WIN32OLERuntimeError)

From: noreply@...
Date: 2006-01-11 13:25:15 UTC
List: ruby-core #7105
Bugs item #3237, was opened at 2006-01-11 13:13
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3237&group_id=426

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Harm Tromp (htromp)
Assigned to: Nobody (None)
Summary: win32ole bug  'method missing': DisableAutoMacros (WIN32OLERuntimeError)

Initial Comment:
Code fragments below still work fine in the One-Click Ruby Installer ruby182-14_rc7a.exe release, and in an older version, reporting:
ruby 1.8.2 (2004-06-29) [i386-mswin32].

But in more recent releases it fails with 'method missing'.

For my script it's essential that Word macros are disabled,
so I made in the old ruby release an executable as a work around.

OS:      Microsoft Windows XP Professional, Version 2002, SP1
MS Word: Microsoft Word (9.0.4402 SR-1)
Ruby:    ruby 1.8.2 (2004-12-25) [i386-mswin32]

...
require 'win32ole'
...
class Word
...
    def initialize
	@wAppl = WIN32OLE.new("Word.Application")
	@wAppl.Application.DisplayAlerts = WdAlertsNone
	@wAppl.WordBasic.DisableAutoMacros(true)
	@mvList = Hash.new
    end
...
wAppl = Word.new
...

>ruby docConvert.rb
docConvert.rb:56:in `method_missing': DisableAutoMacros (WIN32OLERuntimeError)
    OLE error code:0 in <Unknown>
      <No Description>
    HRESULT error code:0x80020003
      Member not found.	from docConvert.rb:56:in `initialize'
	from docConvert.rb:157:in `new'
	from docConvert.rb:157
>Exit code: 1

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3237&group_id=426

In This Thread

Prev Next