Hello again:

After MUCH experimenting, I tried to call each of the functions
below WITHOUT uno.ByteSequence instantiation.

They both worked fine.  Apparently there is an error in the
documention!

Regards,

Dean
----------------------
On Fri, Mar 04, 2011 at 09:48:10AM -0700, Dean Allen Provins, P. Geoph. wrote:
> Hello:
> 
> I'm working up some Python code and have successfully used
> "getDataArray" and "getFormulaArray", but have been singularly
> unsuccessful in using "setDataArray" or "setFormulaArray".
> 
> The Python-UNO bridge document says to use a sequence,
> specifically a ByteSequence to pass the relevant parameters to
> the desired function.  I have employed several variations of the
> following, without success:
> 
>       self.sheet.setDataArray (uno.ByteSequence ("((5.,),(6.,),(7.,))"))
>       ..........................................."(5.,6.,7.)"
>       ..........................................."(5.,6.,7.,)"
>       ..........................................."(5.,),(6.,),(7.,)"
> 
> The error most frequently seen is:
> 
>       __main__.CannotConvertException: conversion not possible!
> 
> When calling (say) "getDataArray", a tuple of tuples is returned,
> such as:
> 
>       ((2.0,) (3.0,) (4.0,))
> 
> so I thought the first example would be most likely to work.
> Alas, that was not the case.
> 
> Any suggestions would be most gratefully received.
> 
> Regards,
> 
> Dean

-- 
                           Dean Provins, P. Geoph.
                         dprov...@alumni.ucalgary.ca
                  KeyID at at pgpkeys.mit.edu:11371: 0x9643AE65
          Fingerprint: 9B79 75FB 5C2B 22D0 6C8C 5A87 D579 9BE5 9643 AE65
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@udk.openoffice.org
For additional commands send email to sy...@udk.openoffice.org
with Subject: help

Reply via email to