I am trying to use ruby win32ole lib and DTE2 Interface to control visual studio 8 \
tried this
require 'win32ole'
ide = WIN32OLE.new('EnvDTE80.DTE2')
and received this error unknown OLE server: EnvDTE80.DTE2
what am I doing wrong, can this work at all ?
...
accessing methods and properties from ruby win32ole gem seems easy, but what do I do when I have to set an enum more specifically, i am trying to set one of the values defined by warningLevelOption defined for VCProjectEngine but nothing seems to work. none of the objects accessible via win32ole , will not recognize this enum, and ...
Hi!
I have implemented a ruby script that is capable of opening a word document through the Ruby WIN32OLE automation library and does a search and replace on some specified string.
This script is running as a "service", or it is running on a windows server with a session that is allowed to be running forever, and I just push the 'X' in...
Okay, so I'm doing some good OLE' (sorry) automation with ruby and I ran into a weird problem. I'm trying to extract some data from a Type Library. This works in VB:
Dim c As New TControlsLib.LangCombo
Dim l As TControlsLib.Language
Dim converter As New TControlsLib.LcidConverter
c.AddAllSystemLanguages mtAllKnownLanguages, True
For Eac...
Most material on the net deals with spawning a separate instance of Internet Explorer with WIN32OLE. Thats all well however I'd really like to be able to control, or rather monitor an existing Internet Explorer instance. I don't need to control it directly, just check its state, i.e has the page finished loading?. Is this possible with w...
I am getting the error Win32::OLE<0.1709> error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at line 109.
The code in is Perl.
foreach my $ref_array1 (@$array1) { # loop through the array
foreach my $col1 (@$ref_array1) {
foreach my $ref_array2 (@$array2) { # loop through the array
foreach my $col2 ...
Hi jruby mavens,
I'm trying to install jruby gem from http://github.com/bpmcd/win32ole .
it seems that standard
jruby -S gem install win32ole
doesn't work.
I'm ruby noobie, and so far I understand that this package is not a gem? Am I correct? Do I need to build it? If yes, could you direct me to the docs that explain how to proceed...
In want to automate a task in windows word 2007 with ruby.
I have in the document several chapters with tables.
This tables include some GUI descriptions (Label 1, Label 2, ...).
Chapter 1
Table 1
Label 1 ipsum
Label 2 lorem
...
Chapter 2
Table 2
Label 3 ipsum
Label 4 lorem
...
...
The problem ...
For example, my docx file contains the following sentences:
This is a Perl example
This is a Python example
This is another Perl example
I want to apply bold style to all the occurrences of the word "Perl" like so:
This is a Perl example
This is a Python example
This is another Perl example
I've so far come up with the following scri...