I've tried:
$Test_suite_workbook = excel.workbooks.open(FileName,ReadOnly:=True)
and
$Test_suite_workbook = excel.workbooks.openFileName),ReadOnly:=True
Neither worked.
Thanks
···
--
Posted via http://www.ruby-forum.com/.
I've tried:
$Test_suite_workbook = excel.workbooks.open(FileName,ReadOnly:=True)
and
$Test_suite_workbook = excel.workbooks.openFileName),ReadOnly:=True
Neither worked.
Thanks
--
Posted via http://www.ruby-forum.com/.
well, these links may help.
http://www.weheartcode.com/2007/10/05/reading-an-excel-file-with-ruby
On Feb 4, 2008 3:41 PM, Darin Duphorn <dduphorn@redbrickhealth.com> wrote:
I've tried:
$Test_suite_workbook = excel.workbooks.open(FileName,ReadOnly:=True)
and
$Test_suite_workbook = excel.workbooks.openFileName),ReadOnly:=TrueNeither worked.
Thanks
--
Posted via http://www.ruby-forum.com/\.
--
--Ben Baka
Blog : http://benjaminbaka.wordpress.com/
Have a look at the parseexcel gem
http://raa.ruby-lang.org/project/parseexcel/
On Feb 4, 2008 10:41 AM, Darin Duphorn <dduphorn@redbrickhealth.com> wrote:
I've tried:
$Test_suite_workbook = excel.workbooks.open(FileName,ReadOnly:=True)
and
$Test_suite_workbook = excel.workbooks.openFileName),ReadOnly:=TrueNeither worked.
Thanks
--
Posted via http://www.ruby-forum.com/\.
Darin Duphorn wrote:
I've tried:
$Test_suite_workbook = excel.workbooks.open(FileName,ReadOnly:=True)
and
$Test_suite_workbook = excel.workbooks.openFileName),ReadOnly:=TrueNeither worked.
Thanks
try giving open() parameters as block...
xlApp=WIN32OLE::new('Excel.Application')
xlApp.Visible=1
xl_file = ('c:\\file.xls')
xlApp.Workbooks.Open({'filename'=> xl_file, 'readOnly' => true})
--
Posted via http://www.ruby-forum.com/\.
Greg Halsey wrote:
Darin Duphorn wrote:
I've tried:
$Test_suite_workbook = excel.workbooks.open(FileName,ReadOnly:=True)
and
$Test_suite_workbook = excel.workbooks.openFileName),ReadOnly:=TrueNeither worked.
Thanks
try giving open() parameters as block...
xlApp=WIN32OLE::new('Excel.Application')
xlApp.Visible=1
xl_file = ('c:\\file.xls')
xlApp.Workbooks.Open({'filename'=> xl_file, 'readOnly' => true})
Thanks Greg that worked.
DD
--
Posted via http://www.ruby-forum.com/\.