https://bz.apache.org/ooo/show_bug.cgi?id=126303
Issue ID: 126303
Issue Type: DEFECT
Summary: Calc: no PageCount value in DocStatistics
Product: App Dev
Version: 4.1.1
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: P5
Component: api
Assignee: [email protected]
Reporter: [email protected]
Created attachment 84735
--> https://bz.apache.org/ooo/attachment.cgi?id=84735&action=edit
Screenshot to show the problem
With this macro, I want to get Document statistics for a spreadsheet:
'*************************************************
Sub DocStats
oDoc = ThisComponent
oProps = oDoc.DocumentProperties
aStats = oProps.DocumentStatistics
' Loop through the array of c.s.s.beans.NamedValue
for i = uBound(aStats) to 0 step -1
x = aStats(i)
result = result & x.Name & ": " & x.Value & chr(10)
next
Msgbox result
End Sub
'*************************************************
The result is different from File > Properties and Statistics tab (see
screenshot).
We have an "ObjectCount" value at zero but none "PageCount".
Tested with AOO 4.1.1 and Win XP, Vista, 7 and Debian x64
--
You are receiving this mail because:
You are the assignee for the issue.