To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=99348
                 Issue #|99348
                 Summary|Uno FunctionAccess returns error if more than 255 argu
                        |ments
               Component|Spreadsheet
                 Version|OOo 2.4.1
                Platform|Unknown
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|programming
             Assigned to|spreadsheet
             Reported by|jtsdata





------- Additional comments from [email protected] Wed Feb 18 00:51:29 
+0000 2009 -------
I'm getting error every time when calling from java
com.sun.star.sheet.XFunctionAccess.FunctionAccess(sFunctionName, Args[])
with Args.length > 255. Where sFunctionName can be ANY function name.

For example:

Object[] aDataOk = {0.0, 1.0, 2.0, 3.0, ... 254.0 }; // aDataOk.length == 255
Object[] aDataNOk = {0.0, 1.0, 2.0, 3.0, ... 255.0 }; // aDataNOk.length > 255

String sFunctionName = "MEDIAN";
Object aResult;
com.sun.star.sheet.XFunctionAccess xFuncAcc;

aResult = xFuncAcc.callFunction(sFunctionName, aDataOk); // Works Fine!!!
aResult = xFuncAcc.callFunction(sFunctionName, aDataNOk); // Generates ERROR!

I've observed this problem with many functions: MEAN, MEDIAN, MIN, MAX etc...
The installation of OO Calc does NOT generate any errors if the number of
arguments for a particular function passed to the FunctionAccess() method is
less than 255 or when the same functions are invoked on a Spreadsheet with more
than 255 rows!

You can find a test-code in Java at:
http://www.oooforum.org/forum/viewtopic.phtml?t=79816

and in Basic at:
http://www.oooforum.org/forum/viewtopic.phtml?p=314408#314408

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to