search for: win32ole

Displaying 20 results from an estimated 41 matches for "win32ole".

2007 Apr 11
5
WIN32OLE MS Word Help
Hi all, I am trying to create word document in ruby using WIN32OLE. as.. require ''win32ole'' word = WIN32OLE.new("Word.Application") word.visible = true word.documents.add selection = word.selection word.Selection.TypeText "This is some text." ... .. . Can we set header and footer to document? I want to generate a document su...
2006 May 06
3
[BUMP] conditional require? conditional action code?
Greetings all. I have some controller code that uses win32ole (only available on windows). This code is now solid, and I''d now like to resume development on (any) other OS(grin). But alas, the controller bails because the OS specific library can''t be found. Can I conditionally specify action code compilation (and a require '...
2007 Nov 21
1
win32ole event handling
I''m evaluating FXRuby for my application. So far everything is going pretty well. The news on the book is good, but I wish it were available today! First off, I''m not much of a Windows programmer (that''s what makes FXRuby so valuable to me). I''m using win32ole to interface to a custom ocx. Calling methods of the ocx works fine. Now I need to receive event info from the ocx and update my application window. I''m lost on how to get this started. Are there any examples that might pave the way? Pick axe has win32ole event receiving paragraph, bu...
2005 Jul 15
1
Win32OLE ?
Dan/Park, What are your thoughts about implemented portion of the win32utils family that are written in ruby utilizing WIN32OLE. I have found myself writing decent amount of ruby code accessing the Windows Scripting Host (WSH) object models. I have a few scripts which could be added. I do not believe the functionality is currently available with win32utils: - map network drives - determine all drive letters in use...
2005 Sep 12
0
WIN32OLE file context during unit test
Hello all, I''m having trouble with the WIN32 file opening. I don''t'' know how to tell if this is a WIN32OLE issue or an issue with the application (Adobe Illustrator CS2) Review the included files below, which exist within a rails application. When IllustratorMinimalTest is run, #testFullPath succeeds, #testFileName fails. Thanks in advance for any advice on how to enable file-name-only referencing to...
2008 May 28
0
WIN32OLE rewrite?
Hi everyone, So, who wants to rewrite the WIN32OLE library? I think I''ve got most everything you''ll need in the windows-pr library, such as Windows::COM::Automation, Windows::Error, etc. I can add anything that''s missing. Advantages include: * No compiler required * Easier to debug * A potentially better and more flexib...
2006 May 04
1
conditional require? conditional action code?
Greetings all. I have some controller code that uses win32ole (only available on windows). This code is now solid, and I''d now like to resume development on (any) other OS(grin). But alas, the controller bails because the OS specific library can''t be found. Can I conditionally specify action code compilation (and a require '...
2009 Jan 13
1
ROR - Excel Export Example
If you are running on Windows you can use create and read speadsheets using the ''win32ole'' require This sample should give you the basic idea ------ def export require ''win32ole'' @sort_by = ''last_name'' current_user = ''steve'' @records = Contact.find( :all, :conditions => [&quot...
2007 Sep 10
12
mongrel_rails service on windows incompatible with recent ruby builds?
i was suffering from a massive memory leak in my application. after searching and testing for quite a while i finally found that it wasn''t my app that had a leak but the win32ole support that was used by the ADO driver in sqlserver adapter. the solution to fix the leak was to install ruby 1.8.5p52 or 1.8.6p36 but sadly as soon i install one of the fixed releases mongrel won''t start as service anymore. the latest version i was able to run as a service is 1.8.5p35...
2007 Apr 16
4
newbie :: Running script at client side
Hi all, I am newbie to Ruby and web programming as well. My show.rhtml is like, . .. ... <% require ''win32ole'' %> <% ie = WIN32OLE.new(''InternetExplorer.Application'') %> <% ie.visible = true %> <% ie.gohome %> ... .. . At server, when I access http://.../show it''ll open Iexplorer.exe as expected, but when I access same from different m/c it opens Ie...
2007 Sep 04
0
RoR on windows with MS SQL Server DBI:ADO driver Memory Leak
i''m running ruby 1.8.5 and rails 1.2.3 on windows with a bunch of mongrels that are proxybalanced via apache 2.2.4 the db adapter i''m using is the sqlserver one in ADO mode. so it''s using win32ole. when a mongrel service is freshly started it consumes about 40 megs of ram. but about each and every request is leaking memory. about 20 megs per hour(!!!). so after half a day the mongrel processes are at 300 meg each and the server barely responds at all. at first i thought i have a bad memor...
2009 May 06
4
[ win32utils-Feature Requests-25792 ] Create a pure Ruby win32-ole library
...: http://rubyforge.org/tracker/?func=detail&atid=414&aid=25792&group_id=85 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Nobody (None) Summary: Create a pure Ruby win32-ole library Initial Comment: The current Win32OLE library is a C monster, has some bugs, and doesn''t have a particularly good interface. I think a pure Ruby version would be easier to write and maintain, could have a more Ruby-ish interface, and could be installed as a gem instead of people having to wait for the next release of Ruby. R...
2007 Jul 02
0
How to use MS Word features from Rails app running as servic
Hi, I am using features of MS Word 2003 on Win XP in my rails application. The server has Win XP installed. I am able to open a document, save as HTML etc. if I run the app using mongrel_rails start ... on command prompt. I use the Win32OLE support for Ruby: doc = WIN32OLE.new(''Word.Application'') However, at the deployment site, I have configured the app to run as a Windows Service using the mongrel: mongrel_rails service::install -N EDiscussions -c appdir -p 80 -e production The application runs fine except for th...
2007 Jun 28
2
Keeping GUI responsive while processing data
To start I will say I have read through the read "Problem with threads" to try and work around this problem, but I do not think I understand what is happening enough to make use of the info I found there. My app is pretty basic and does some text processing on 2 files and uses WIN32OLE to take the data and put it an excel sheet. The processing is really fast, but loading up Excel and doing output via WIN32OLE is taking a little bit. I''m fine with the speed, but while its doing the processing and output the entire GUI freezes and looks like crap for about 5 seconds. B...
2007 Apr 11
2
can we use MS Word Template using Ruby
Hi all, I am creating MS word document using ruby. can I use a "template" document in Microsoft word with place holders for dynamic data from database using ruby. Like, I''ve a template, I want to fill it by data from database, using ruby. Please help me out. Thanks, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
2007 Jan 17
12
Excel sheet generation
Hi, Does anyone know of a package that will help with generation of spreadsheets? (xls files, not csv) Thanks, Fredrik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2008 Jun 10
7
Unraveling a FAR*
Hi all, Just looking over fole_s_connect() in win32ole.c and I noticed this bit: hr = CLSIDFromProgID(pBuf, &clsid); ... hr = GetActiveObject(&clsid, 0, &pUnknown); ... hr = pUnknown->lpVtbl->QueryInterface( pUnknown, &IID_IDispatch, (void **)&pDispatch ); Using win32-api, that would be something like: IID_IUnknown...
2004 Dec 10
1
Modification for mkmf
.../library/default.asp?url=/library/en-us/winprog /winprog/using_the_windows_headers.asp Based on that, I think we need a patch for mkmf when on Windows that sets _WIN32_WINNT automatically based on platform. This is the basic code I''ve come up with: require "mkmf" require "win32ole" require "socket" # We need to get the exact version number and set _WIN32_WINNT accordingly host = Socket.gethostname cs = "winmgmts:{impersonationLevel=impersonate,(security)}//#{host}/root/cimv 2" wmi = WIN32OLE.connect(cs) major = nil minor = nil wmi.Instances...
2004 May 16
1
com/dcom
...was to setup a COM server and a class. I tried to download Ralph Mason''s rubycom package, but the link is dead. I''ve emailed Ralph, but if rubycom isn''t being maintained any more, I think we should work on a COM/DCOM interface next. Or, is this already possible with Win32OLE? Regards, Dan
2007 Dec 10
1
kernel#system
Salut Alex. Dans mon application, j''ouvre IE7 avec kernel#system et j''aimerai pouvoir maximizer IE7 à l''ouverture. Il faut que je passe qu''elle commande à kernel#system pour pouvoir le maximizer? merci sebastien http://beusse.liveror.com _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org