I'm seen an error when exporting from xbrowse using :ToExcel(). Error text is:
Error Excel.Application.ACTIVESHEET/424 Unknown error: CELLS
...
Stack-List
Called by TXBROWSE:TOEXCEL(6935)Any ideas?
Thank you,
Reinaldo.
Error Excel.Application.ACTIVESHEET/424 Unknown error: CELLS
...
Stack-List
Called by TXBROWSE:TOEXCEL(6935)We need to see what is the code in line 6935.
Very likely, such an error could arise when the parameters of Cells(...) are invalid or invalid assignment.
oSheet:Cells( nPasteRow, 1 ):Select()[ 1 ] = N 353213
ferase( 'x.log' ) // INSERTED
logfile( 'x.log', { nRow, nPasteRow, nDataRows } ) // INSERTED
do while nRow <= ( nDataRows + 1 ) .and. lContinue
if ! Empty( cText )
cText += CRLF
endif
cText += ::ClpRow( .t., aCols )
lContinue := ( ::Skip( 1 ) == 1 ) // Eval( ::bSkip, 1 )
nRow ++
if nRow % 1000 == 0 .or. nRow > 353000 // INSERTED
logfile( 'x.log', { nRow, nPasteRow, nDataRows } ) // INSERTED
endif // INSERTEDMr. Rao;
Hi. Thank you for the information.
The error log is being saved to a systemerrors table. I get to inspect the table on a daily base looking for bugs. However, I don't have an installation where the program is used by less than 70 users and although I do know the login user's name that generates the runtime error, I do not have access to c: drive of each workstation. Therefore loggin to x.log will not help. Loggin to a shared drive won't help either as x.log would be re-written time and again by many users.
I will try to log to a table each time this piece of code executes and hopefully I will be able to match the runtime error to it. Trying to export 353k records to excel does not make any sense to me. In theory users may set a filter and then try to export to excel that subset that passes the filter condition. Filters are created using AOFs. bKeyCount() might be the problem here as it might not be respecting filters ...? If so, then this is something I can fix.
I'll get back when I have more info.
Thank you,
Reinaldo.
bKeyCount() might be the problem here as it might not be respecting filters ...?