[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: problem in automating Excel 2003


My code is working for WinXP with Excel-2003, but not for the Win-2000 with Excel-2003, I don't know what is the problem?

Ok. I found a Win2000 with Excel2003 to try your code. The problem is with line 15. 15: rgvarg[0] = new Variant((long)1);
Change it to
15: rgvarg[0] = new Variant(1);


I read the doc and the parameter should be an "int" so I'm not sure why you wanted to pass it a "long".

As soon as I changed it to an int, I was able to get past that line of code. You still have other problems later in your code but I don't have time to debug it.

Duong