To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=59645 Issue #:|59645 Summary:|API: SwXTextTable::XCellRangeData::getDataArray() |only returns numerical values Component:|api Version:|OOo 2.0.1 Platform:|All URL:| OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|tl Reported by:|sw
------- Additional comments from [EMAIL PROTECTED] Wed Dec 21 07:08:45 -0800 2005 ------- If you have a textdocument with a texttable then the following macro will only return numerical values and will return string values as 0. Dim oTable oTable = Thiscomponent.getTextTables().getbyIndex(0) Dim oData() : oData() = oTable.getDataArray() Dim a() : a() = oData(1) Print a(1) MsgBox Join(a(), CHR$(10)) Print oTable.getCellByPosition(1, 1).getString() A quick look at sw/source/core/unocore/unotbl.cxx showed that the method getDataArray() contains a snippet ... sal_uInt32 nNdPos = pBox->IsValidNumTxtNd( sal_True ); if(USHRT_MAX == nNdPos) pColArray[nCol] <<= lcl_getString(*pXCell); else pColArray[nCol] <<= lcl_getValue(*pXCell); but as far as I can see IsValidNumTxtNd( sal_True ) in sw/source/core/doc returns ULONG_MAX in case of a string and so the line pColArray[nCol] <<= lcl_getString(*pXCell) won't be reached. --------------------------------------------------------------------- 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]