help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows Package


From: John Hudock
Subject: Re: Windows Package
Date: Wed, 21 Jul 2010 11:25:24 -0700 (PDT)

I've unloaded oct2mat, but to no effect. I've also moved the spreadsheet to
the top directory to see if it was some naming problem because of spaces in
the path, but no luck there either. The spreadsheet is just a simple single
sheet spreadsheet of just data that I created just to test the octave
function. It just contains a simple sheet of numeric data I am trying to
read.

The problem does seem to be in the Windows package.

============================
>>> app = actxserver ("Excel.Application");
>>> app
app =

<COM object _Application (0x0x26dadc)>
============================

works, but when I try to open:
===============================================
>>> wb = app.Workbooks.Open ("C:\\OctaveTest.xls");
>>>error: can't perform indexing operations for octave_com_object type
===============================================

The problem seems to be in the assignment. If I just do the open it seems to
return a workbook object:

===============================
>>>app.Workbooks.Open("C:\\OctaveTest.xls")
ans =

<COM object _Workbook (0x0x26f0ac)>
===============================

but trying to assign the result to a variable fails:

===============================
>>> wb=app.Workbooks.Open("C:\\OctaveTest.xls");
>>>error: can't perform indexing operations for octave_com_object type
>>> wb
>>>error: `wb' undefined near line 64 column 1
===============================

-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/Windows-Package-tp2296173p2297549.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]