【发布时间】:2019-01-28 13:33:34
【问题描述】:
问题在于脚本会立即解析文档中的所有计算数据(如果文档很大),而没有给它加载和计数的时间。可以做什么?
Sub GetStatistics(cFile)
cUrl = ConvertToURL(cFile)
oDoc = StarDesktop.loadComponentFromURL(cUrl, "_blank", 0, Array())
Data = oDoc.GetDocumentProperties().DocumentStatistics
s = ""
For i = LBound(oData) To UBound(oData)
s = s & oData(i).Name & " : " & oData(i).Value & CHR$(10)
Next
MsgBox(s)
End Sub
【问题讨论】:
标签: libreoffice libreoffice-basic