similar to: newbie :: Running script at client side

Displaying 20 results from an estimated 2000 matches similar to: "newbie :: Running script at client side"

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 such that its header contains an
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 ''win32ole'') based on OS or
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 ''win32ole'') based on OS or
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 =>
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
2006 Apr 20
3
How to restrict access to images by user?
Hi, I have a some image files that belongs to some users. Only the owner of an image should be able to see it. How can I do that? I don''t think I can use send_data, because I want the image to be displayed on a "rendered" page. I don''t think I can place the images in the public folder, because if some user can figure out the name of the image then he''ll be
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 -
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
2009 May 06
4
[ win32utils-Feature Requests-25792 ] Create a pure Ruby win32-ole library
Feature Requests item #25792, was opened at 2009-05-05 17:29 You can respond by visiting: 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
2006 Aug 10
4
exporting vcards from rails
i''m doing a site for someone that has a form set up to collect contact information from the user. i installed the vpim gem and was hoping to give my client a way to download all of the contact''s information as a vcard. using the examples, i was able to get it working in ruby, but i''m not quite sure how to generate and download a vcard on the fly. has anyone done
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
2007 Feb 26
2
Problem concerning CSV Mime Type
Hello, I have an application that should be able to export a list of users as CSV. So I put Mime::Type.register "text/csv", :csv into my environment.rb, and added this code to my UserController''s index action: format.csv do require ''csv'' CSV::Writer.generate(csv_string = "", '','') do |csv| csv
2004 May 16
1
com/dcom
Hi all, I was just reading my "Python Programming on Win32" and I saw how easy it 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
2006 May 22
5
download manager?? anyone?
Hello all, i have been searching for some time now on how to upload files and then display them to be downloaded, haven''t had any luck. it seems all the documentation is for uploading and displaying pictures. is this the same thing? i''m lost... any help would be greatly appreciated. Jon -- Posted via http://www.ruby-forum.com/.
2009 Feb 19
2
Installing wine on an Asus EEEPC 901
I am trying to install wine on an Asus EEEPC 901. Every thing goes as expected until I receive the following FATAL error. What is the problem and what can I do about it? If I then try winecfg I receive the error messages further down. winefile appears to behave correctly but iexplorer remains blank even after Gecko is installed. Notepad appears to work ok. Setting up libwine-print
2008 May 26
1
Interest in win32-installer
I was wondering if people would be interested in wrapping msi.dll functionality, I''ve started writing a small library to enable enumeration of products installed via Windows Installer using win32api (I know I can also query via win32ole to win32_product but I don''t seem to get all the properties that are in msi.h). It''s a little messy, and I''ve not got far as
2008 Sep 05
1
How do I use Internet Explorer 6.0 in Wine 1.1.3
Hi I just installed Wine 1.1.3 a couple of days ago, on my Acer Aspire 3623 Laptop (256MB and 40G HD) running PuppyLinux 4.0 OS. I installed Wine because I am taking an online math course at college and it needs a Windows OS and Internet Explorer 6.0 to run. [Image: http://farm4.static.flickr.com/3224/2831514726_408632591a_o.png ] Then I installed Internet Exlorer using the "Add
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 =
2008 Jun 19
1
Wrong path to app.exe
Hi, Yesterday (one day after its release) I installed WINE 1.0 via openSuSE 10.3 YAST - from repository. I also installed WINE-DOORS 0.1.2. (first I unistalled and deleted earlier test installations and .wine folder) Then I installed IE6 via the WINE-DOORS list. This also installed a lot of other windows stuff. This is often advised to support other apps. Very nice! IE6 was then tested. It
2010 Aug 08
3
ie 8 and LocalHost
I just installed IE8 with Wine ... and when i launch iexplorer I get to the WineHQ site without toolbar. I would like to connect to "http://localhost:8081/init.do (http://localhost:8081/init.do)" ... How can I change the default page, and How can I switch on the toolbar thanks !