Re: Trouble with ExcelProp.java demo

Morten Andersen <[email protected]> Wed, 6 Jul 2005 22:53:04 +0200
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Stan,

Stan Hughes wrote:
> First of all, let me preface this with the following: I am new to COM and
> find it particularly confusing.
>

Understandable! - I don't think that many people except Don Box
understand COM completely :-/

> At any rate, on to my problem; I am trying to run the ExcelProp.java demo
> and get an error when the code reaches the line
>
> ...
>    range.putN("Item", new Object[] { new Integer(1)}, 2, range2);
> ...
>
> I had to manually create the  'args[0]+"\\demos\\data\\propput.xls"' file,
> as this file did not exist in the distribution, which I suspect may
> contribute to my problem. Can anyone tell me what should be in this file
> or where I can download it.

I don't think there has ever been such a file in the distribution. And I
am a little bit in doubt about how this Excel demo works/are supposed to
work - e.g. I am not sure whether its "open" command creates a new
workbook, or if it only works on opening an existing workbook.

Unfortunately I don't have access to a machine with Excel any longer
(the OpenOffice suite takes care of my need for writing and spreadsheet
applicications these days), so I can not check how the demo is supposed
to work.

Hopefully somebody else on the list can jump in and confirm Stan's
findings, or help with debugging it?

Best Regards, and sorry for not being of much help
Morten