#1 2022-09-23 14:46:44

udihamudi
Member
Registered: 2022-09-16
Posts: 14

Member not found

Hi All,

Getting the above error message for the following line of code -

xlWorksheet.Range(xlRange).Value:=xlValues;


Any ideas?

Thanks!

Offline

#2 2022-09-23 15:38:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Member not found

Impossible to find out what you expect with so few elements of context.

Are you using an OleVariant xlWorksheet?

It sounds out of mORMot scope, I am afraid.

Offline

#3 2022-09-23 15:56:44

udihamudi
Member
Registered: 2022-09-16
Posts: 14

Re: Member not found

Yes, not my code but trying to understand and debug -

xlWorksheet   : oleVariant;

////

xlValues[numCol]:=oleVariant(UTF8toUTF16(lTable[numRow][numCol]));

////

xlRange:=oleVariant('A'+intToStr(numRow+1)+':'+colNumToColStr(nbCols)+intToStr(numRow+1));

when I print xlRange it seems ok, xlValues cannot be printed out - seems like some kind of array.

Last edited by udihamudi (2022-09-23 15:58:08)

Offline

#4 2022-09-23 15:59:04

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Member not found

This has nothing to do with mORMot.

Please try to use some other platform, e.g. stackoverflow or DelphiPraxis.

Offline

#5 2022-09-23 16:12:41

udihamudi
Member
Registered: 2022-09-16
Posts: 14

Re: Member not found

I printed the exception type and message, saying -

EOleSysError raised, with message: Member not found

Does this give us any clue?

Thanks

Offline

#6 2022-09-23 16:42:46

igors233
Member
Registered: 2012-09-10
Posts: 241

Re: Member not found

It means object you retrieved do not contain that member (Value or what ever you used). There are examples (and I think library) for working with Excel through OleAPI.

This is not a problem for this forum.

Offline

Board footer

Powered by FluxBB