【Calc文档_文字内容的写入笔记记录】
//获取目标单元格,其中,xCellRange是工作页的Cell接口
Reference<com::sun::star::table::XCell> xTargetCell=xCellRange->getCellByPosition(0,0);
//获取目标单元格的文字接口
Reference<com::sun::star:::text::XText> xText(xTargetCell,UNO_QUERY);
//插入文字 xText->setString(rtl::OUString(_T("Test文字")));
PS:核心serveice:com::sun::star:::text::XText
转载请注明原文地址: https://ju.6miu.com/read-12280.html