John Maclean
2/7/2006 2:03:00 AM
I've seen something in the source code...
/usr/share/doc/ruby-docs-1.8.4/ext/win32ole/sample/
require 'win32ole'
#application = WIN32OLE.new('Excel.Application.5')
application = WIN32OLE.new('Excel.Application')
application.visible = TRUE
workbook = application.Workbooks.Add();
worksheet = workbook.Worksheets(1);
worksheet.Range("A1:D1").value = ["North","South","East","West"];
worksheet.Range("A2:B2").value = [5.2, 10];
worksheet.Range("C2").value = 8;
worksheet.Range("D2").value = 20;
range = worksheet.Range("A1:D2");
range.Select
chart = workbook.Charts.Add;
workbook.saved = TRUE;
application.ActiveWorkbook.Close(0);
application.Quit();
On Tue, 7 Feb 2006 10:36:00
+0900 "Paatsch, Bernd" <BPaatsch@activevoice.com> wrote:
> Hello,
>
> Is it possible to access Excel spreadsheets through ruby?
> If so is there somewhere a code example I can have a look at?
>
> Thanks,
> Bernd
--
John Maclean
MSc (DIC)
07739 171 531