Displaying 20 results from an estimated 5000 matches similar to: "can we use MS Word Template using Ruby"
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
2007 Apr 05
4
newbie :: Create document from database
Hi all,
I am newbie to ruby. I am creating web based data management tool
using ruby on rails. I''ve done with interface and data management. Now
I want to create a document from database. I want my database values
should reflect in standard doc format, like a template. How can I do
it in ruby. I am using MySQL-front as back-end.
Please help me out.
Thanks,
-aveo
--
Posted via
2006 Jun 29
4
Extracting R plots from MS Word
Hi,
I am revising a paper that I am a co-author of. The figures are plots
generated from R but at the moment I do not have the R code that generates
them.
As this is time critical I would like to slightly abuse the list by asking
whether anyone knows how to extract from MS Word into a stand-alone
graphics file a plot that was pasted into Word from R (probably as a
Windows Metafile, but possibly
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 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
2007 Apr 10
5
newbie :: Convert integer to string in Ruby
Hi all,
Please anybody tell me how to Convert integer to string in Ruby and
concat it.
Suppose I''ve a string "ABC" , I want to concat it with a number say
"ABC12" .
Please help me out.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post
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
2005 May 13
1
ruby, rails, unicode and word docs
Hi,
I''m new to ruby and rails and have some quick questions. We want to
build an app that needs to:
a. handle unicode
b. handle, say someone submitting an MS word doc to the
application, this being taken into the app and formatted out to nice
sane HTML.
I know I could do all this with perl, what I want to know is are
there libraries that can help do this with ruby?
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
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
2009 Jun 15
2
[OT] VBA to save excel as csv
Hi all,
This is a little off-topic, but it is on the general topic of getting
data in R. I'm looking for a excel macro / vba script that will
export all spreadsheets in a directory (with one file per tab) into
csv. Does anyone have anything like this?
Thanks,
Hadley
--
http://had.co.nz/
2006 Feb 09
1
Office 2003 hangs when writing to share
I am having a problem writing/saving to a SMB share with O2K3(Word). In WORD, if I File/SaveAs \\machine\share\fred.doc - the windows machine hangs completely (Explorer+Word immediately, then all other processes after a period of say 1min).
Most other scenarios succeed:
ok: File/SaveAs C:\fred.doc, then move to \\machine\share using explorer.
ok: Outlook.PST file on \\machine\share can be written
2012 Jun 26
3
plotting two histograms on one plot with hist function
I would like to plot two data sets (frequency (y-axis) of mean values for 0-1(x=axis)) on a single histogram for comparison. The hist() only allow the overlay of two histograms, and although barplot() allows beside=TRUE, it does not show frequency values (like hist) but rather all of the values. Is there any way that I can use the hist() to plot two data sets similar to the barplot(). Any help or
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
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
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
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 Apr 22
7
Getting a complete URL from Rails
Hello,
I''m sending out an e-mail message to new users of my service. I want
to send a particular link in this e-mail but I can''t figure out how to
get a complete URL from the url_for method. Is there a way to do this
without manually setting the host name?
Thank you,
-- Miles
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
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
2007 Apr 16
4
Web Flow and the session method in ActionController
Hi there,
I''m writing a port of Spring Webflow to Ruby on rails and I''ve
encountered quite a lot of difficulty finding how to override the
session[] method which is accessed via any ActionController.
I have my pseudo-code ready to implement, but I can''t find the method
declaration to copy it''s signature.
Also, if anyone wants to collaborate on this particular