spire-xls 15.11.1__py3-none-win_amd64.whl → 16.2.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spire/xls/ColorScale.py +3 -3
- spire/xls/XlsName.py +13 -0
- spire/xls/XlsWorksheet.py +18 -0
- spire/xls/__init__.py +1 -0
- spire/xls/charts/Chart.py +1 -0
- spire/xls/charts/ChartDataLabels.py +1 -0
- spire/xls/charts/ChartPlotArea.py +1 -0
- spire/xls/charts/ChartShadow.py +1 -1
- spire/xls/charts/ChartSheet.py +1 -0
- spire/xls/charts/ChartTextArea.py +20 -19
- spire/xls/charts/XlsChart.py +12 -12
- spire/xls/charts/XlsChartAxis.py +3 -0
- spire/xls/charts/XlsChartCategoryAxis.py +1 -1
- spire/xls/charts/XlsChartDataLabelArea.py +17 -12
- spire/xls/charts/XlsChartDataLabels.py +19 -0
- spire/xls/charts/XlsChartDataTable.py +17 -12
- spire/xls/charts/XlsChartDropBar.py +4 -1
- spire/xls/charts/XlsChartFrameFormat.py +5 -1
- spire/xls/charts/XlsChartGridLine.py +2 -2
- spire/xls/charts/XlsChartInterior.py +2 -0
- spire/xls/charts/XlsChartLegend.py +2 -1
- spire/xls/charts/XlsChartLegendArea.py +18 -12
- spire/xls/charts/XlsChartSerie.py +4 -1
- spire/xls/charts/XlsChartSerieDataFormat.py +12 -3
- spire/xls/charts/XlsChartShape.py +13 -13
- spire/xls/charts/XlsChartTitleArea.py +2 -0
- spire/xls/charts/XlsChartWallOrFloor.py +8 -2
- spire/xls/collection/XlsChartFormatCollection.py +4 -4
- spire/xls/collection/XlsChartSeries.py +3 -3
- spire/xls/collection/pivot_table/PivotDataFields.py +1 -0
- spire/xls/collection/pivot_table/PivotTableFields.py +1 -1
- spire/xls/collection/pivot_table/XlsPivotCachesCollection.py +1 -0
- spire/xls/common/Boolean.py +2 -0
- spire/xls/common/Byte.py +2 -0
- spire/xls/common/Char.py +2 -0
- spire/xls/common/Color.py +2 -0
- spire/xls/common/Common.py +13 -0
- spire/xls/common/CultureInfo.py +2 -0
- spire/xls/common/DateTime.py +16 -0
- spire/xls/common/Double.py +2 -0
- spire/xls/common/EmfType.py +2 -0
- spire/xls/common/Encoding.py +2 -0
- spire/xls/common/FontStyle.py +2 -0
- spire/xls/common/GraphicsUnit.py +2 -0
- spire/xls/common/ICollection.py +3 -0
- spire/xls/common/IDictionary.py +2 -0
- spire/xls/common/IEnumerable.py +3 -0
- spire/xls/common/IEnumerator.py +2 -0
- spire/xls/common/IList.py +3 -0
- spire/xls/common/Int16.py +2 -0
- spire/xls/common/Int32.py +2 -0
- spire/xls/common/Int64.py +2 -0
- spire/xls/common/License.py +12 -0
- spire/xls/common/PixelFormat.py +2 -0
- spire/xls/common/Point.py +2 -0
- spire/xls/common/PointF.py +2 -0
- spire/xls/common/Rectangle.py +2 -0
- spire/xls/common/RectangleF.py +2 -0
- spire/xls/common/Regex.py +2 -0
- spire/xls/common/RegexOptions.py +2 -0
- spire/xls/common/Single.py +2 -0
- spire/xls/common/Size.py +2 -0
- spire/xls/common/SizeF.py +6 -4
- spire/xls/common/SpireObject.py +2 -0
- spire/xls/common/Stream.py +2 -0
- spire/xls/common/String.py +3 -1
- spire/xls/common/TimeSpan.py +2 -0
- spire/xls/common/UInt16.py +2 -0
- spire/xls/common/UInt32.py +2 -0
- spire/xls/common/UInt64.py +2 -0
- spire/xls/common/__init__.py +80 -9
- spire/xls/conditional_formatting/ConditionValue.py +0 -12
- spire/xls/conditional_formatting/XlsConditionValue.py +4 -6
- spire/xls/interfaces/IChartErrorBars.py +2 -0
- spire/xls/interfaces/IChartTrendLine.py +1 -0
- spire/xls/interfaces/IListObject.py +2 -0
- spire/xls/interfaces/IOleObject.py +2 -0
- spire/xls/interfaces/collections/IShapes.py +6 -6
- spire/xls/interfaces/pivot_table/IPivotTableOptions.py +12 -14
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/pivot_tables/PivotDataField.py +1 -1
- spire/xls/pivot_tables/PivotReportFilter.py +4 -4
- spire/xls/pivot_tables/PivotReportFilters.py +1 -1
- spire/xls/pivot_tables/XlsPivotCache.py +3 -1
- spire/xls/pivot_tables/XlsPivotField.py +2 -1
- spire/xls/pivot_tables/XlsPivotTable.py +4 -1
- spire/xls/sorting/SortColumn.py +1 -1
- spire/xls/sorting/SortColumns.py +1 -0
- spire/xls/sparkline/SparklineCollection.py +13 -1
- spire/xls/sparkline/SparklineGroupCollection.py +1 -1
- spire/xls/template_markers/MarkerDesigner.py +3 -2
- {spire_xls-15.11.1.dist-info → spire_xls-16.2.0.dist-info}/METADATA +1 -1
- {spire_xls-15.11.1.dist-info → spire_xls-16.2.0.dist-info}/RECORD +96 -96
- /spire/xls/lib/{_init_.py → __init__.py} +0 -0
- {spire_xls-15.11.1.dist-info → spire_xls-16.2.0.dist-info}/WHEEL +0 -0
- {spire_xls-15.11.1.dist-info → spire_xls-16.2.0.dist-info}/top_level.txt +0 -0
spire/xls/common/License.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
|
@@ -41,11 +43,13 @@ class License (SpireObject) :
|
|
|
41
43
|
licenseFileFullPathPtr = StrToPtr(licenseFileFullPath)
|
|
42
44
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibDoc(), licenseFileFullPathPtr)
|
|
43
45
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibPdf(), licenseFileFullPathPtr)
|
|
46
|
+
License.SetLicenseFileFullPathByDLLHander(GetDllLibOcr(), licenseFileFullPathPtr)
|
|
44
47
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibXls(), licenseFileFullPathPtr)
|
|
45
48
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibPpt(), licenseFileFullPathPtr)
|
|
46
49
|
else:
|
|
47
50
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibDoc(), licenseFileFullPath)
|
|
48
51
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibPdf(), licenseFileFullPath)
|
|
52
|
+
License.SetLicenseFileFullPathByDLLHander(GetDllLibOcr(), licenseFileFullPath)
|
|
49
53
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibXls(), licenseFileFullPath)
|
|
50
54
|
License.SetLicenseFileFullPathByDLLHander(GetDllLibPpt(), licenseFileFullPath)
|
|
51
55
|
|
|
@@ -62,11 +66,13 @@ class License (SpireObject) :
|
|
|
62
66
|
licenseFileNamePtr = StrToPtr(licenseFileName)
|
|
63
67
|
License.SetLicenseFileNameByDLLHander(GetDllLibDoc(), licenseFileNamePtr)
|
|
64
68
|
License.SetLicenseFileNameByDLLHander(GetDllLibPdf(), licenseFileNamePtr)
|
|
69
|
+
License.SetLicenseFileNameByDLLHander(GetDllLibOcr(), licenseFileNamePtr)
|
|
65
70
|
License.SetLicenseFileNameByDLLHander(GetDllLibXls(), licenseFileNamePtr)
|
|
66
71
|
License.SetLicenseFileNameByDLLHander(GetDllLibPpt(), licenseFileNamePtr)
|
|
67
72
|
else:
|
|
68
73
|
License.SetLicenseFileNameByDLLHander(GetDllLibDoc(), licenseFileName)
|
|
69
74
|
License.SetLicenseFileNameByDLLHander(GetDllLibPdf(), licenseFileName)
|
|
75
|
+
License.SetLicenseFileNameByDLLHander(GetDllLibOcr(), licenseFileName)
|
|
70
76
|
License.SetLicenseFileNameByDLLHander(GetDllLibXls(), licenseFileName)
|
|
71
77
|
License.SetLicenseFileNameByDLLHander(GetDllLibPpt(), licenseFileName)
|
|
72
78
|
|
|
@@ -93,6 +99,7 @@ class License (SpireObject) :
|
|
|
93
99
|
"""
|
|
94
100
|
License.SetLicenseFileStreamByDLLHander(GetDllLibDoc(), stream)
|
|
95
101
|
License.SetLicenseFileStreamByDLLHander(GetDllLibPdf(), stream)
|
|
102
|
+
License.SetLicenseFileStreamByDLLHander(GetDllLibOcr(), stream)
|
|
96
103
|
License.SetLicenseFileStreamByDLLHander(GetDllLibXls(), stream)
|
|
97
104
|
License.SetLicenseFileStreamByDLLHander(GetDllLibPpt(), stream)
|
|
98
105
|
@staticmethod
|
|
@@ -114,11 +121,13 @@ class License (SpireObject) :
|
|
|
114
121
|
keyStr = StrToPtr(key)
|
|
115
122
|
License.SetLicenseKeyByDLLHander(GetDllLibDoc(), keyStr)
|
|
116
123
|
License.SetLicenseKeyByDLLHander(GetDllLibPdf(), keyStr)
|
|
124
|
+
License.SetLicenseKeyByDLLHander(GetDllLibOcr(), keyStr)
|
|
117
125
|
License.SetLicenseKeyByDLLHander(GetDllLibXls(), keyStr)
|
|
118
126
|
License.SetLicenseKeyByDLLHander(GetDllLibPpt(), keyStr)
|
|
119
127
|
else:
|
|
120
128
|
License.SetLicenseKeyByDLLHander(GetDllLibDoc(), key)
|
|
121
129
|
License.SetLicenseKeyByDLLHander(GetDllLibPdf(), key)
|
|
130
|
+
License.SetLicenseKeyByDLLHander(GetDllLibOcr(), key)
|
|
122
131
|
License.SetLicenseKeyByDLLHander(GetDllLibXls(), key)
|
|
123
132
|
License.SetLicenseKeyByDLLHander(GetDllLibPpt(), key)
|
|
124
133
|
|
|
@@ -144,6 +153,7 @@ class License (SpireObject) :
|
|
|
144
153
|
"""
|
|
145
154
|
License.ClearLicenseByDLLHander(GetDllLibDoc())
|
|
146
155
|
License.ClearLicenseByDLLHander(GetDllLibPdf())
|
|
156
|
+
License.ClearLicenseByDLLHander(GetDllLibOcr())
|
|
147
157
|
License.ClearLicenseByDLLHander(GetDllLibXls())
|
|
148
158
|
License.ClearLicenseByDLLHander(GetDllLibPpt())
|
|
149
159
|
@staticmethod
|
|
@@ -166,6 +176,8 @@ class License (SpireObject) :
|
|
|
166
176
|
ret = License.GetLicenseFileNameByDLLHander(GetDllLibXls())
|
|
167
177
|
if ret == None:
|
|
168
178
|
ret = License.GetLicenseFileNameByDLLHander(GetDllLibPpt())
|
|
179
|
+
if ret == None:
|
|
180
|
+
ret = License.GetLicenseFileNameByDLLHander(GetDllLibOcr())
|
|
169
181
|
return ret
|
|
170
182
|
@staticmethod
|
|
171
183
|
def GetLicenseFileNameByDLLHander(dllhander)->str:
|
spire/xls/common/PixelFormat.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/Point.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/PointF.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/Rectangle.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common":
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/RectangleF.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common":
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/Regex.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
from ctypes import *
|
spire/xls/common/RegexOptions.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
from ctypes import *
|
spire/xls/common/Single.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/Size.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/SizeF.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
|
@@ -34,10 +36,10 @@ class SizeF (SpireObject) :
|
|
|
34
36
|
def __init__(self, pointf:'PointF'):
|
|
35
37
|
ptrPoint:c_void_p = pointf.Ptr
|
|
36
38
|
|
|
37
|
-
dlllib.
|
|
38
|
-
dlllib.
|
|
39
|
-
intPtr = CallCFunction(dlllib.
|
|
40
|
-
super(SizeF, self).__init__(
|
|
39
|
+
dlllib.SizeF_CreateP.argtypes=[c_void_p]
|
|
40
|
+
dlllib.SizeF_CreateP.restype = c_void_p
|
|
41
|
+
intPtr = CallCFunction(dlllib.SizeF_CreateP,ptrPoint)
|
|
42
|
+
super(SizeF, self).__init__(intPtr)
|
|
41
43
|
"""
|
|
42
44
|
|
|
43
45
|
"""
|
spire/xls/common/SpireObject.py
CHANGED
|
@@ -9,6 +9,8 @@ elif __package__ == "spire.xls.common":
|
|
|
9
9
|
from spire.xls.common import *
|
|
10
10
|
elif __package__ == "spire.doc.common":
|
|
11
11
|
from spire.doc.common import *
|
|
12
|
+
elif __package__ == "spire.ocr.common" :
|
|
13
|
+
from spire.ocr.common import *
|
|
12
14
|
else :
|
|
13
15
|
from spire.presentation.common import *
|
|
14
16
|
|
spire/xls/common/Stream.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/String.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
|
@@ -24,7 +26,7 @@ class String ( SpireObject) :
|
|
|
24
26
|
super(String, self).__init__(intPtr)
|
|
25
27
|
@dispatch
|
|
26
28
|
def __init__(self, value:str):
|
|
27
|
-
if __package__ == "spire.presentation.common":
|
|
29
|
+
if __package__ == "spire.presentation.common" or __package__ == "spire.doc.common":
|
|
28
30
|
valuePtr = StrToPtr(value)
|
|
29
31
|
dlllib.String_CreateV.argtypes=[ c_void_p]
|
|
30
32
|
dlllib.String_CreateV.restype = c_void_p
|
spire/xls/common/TimeSpan.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/UInt16.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/UInt32.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/UInt64.py
CHANGED
|
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
|
|
|
7
7
|
from spire.xls.common import *
|
|
8
8
|
elif __package__ == "spire.doc.common":
|
|
9
9
|
from spire.doc.common import *
|
|
10
|
+
elif __package__ == "spire.ocr.common" :
|
|
11
|
+
from spire.ocr.common import *
|
|
10
12
|
else :
|
|
11
13
|
from spire.presentation.common import *
|
|
12
14
|
#from spire.xls import *
|
spire/xls/common/__init__.py
CHANGED
|
@@ -25,26 +25,31 @@ if os_name == "Windows":
|
|
|
25
25
|
lib_pathDoc = r'.\Spire.Doc.Base.dll'
|
|
26
26
|
lib_pathPdf = r'.\Spire.Pdf.Base.dll'
|
|
27
27
|
lib_pathPpt = r'.\Spire.Presentation.Base.dll'
|
|
28
|
+
lib_pathOcr = r'.\Spire.Ocr.Base.dll'
|
|
28
29
|
elif os_name == "Linux":
|
|
29
30
|
lib_pathXls = r'./Spire.Xls.Base.so'
|
|
30
31
|
lib_pathDoc = r'./Spire.Doc.Base.so'
|
|
31
32
|
lib_pathPdf = r'./Spire.Pdf.Base.so'
|
|
32
33
|
lib_pathPpt = r'./Spire.Presentation.Base.so'
|
|
34
|
+
lib_pathOcr = r'./Spire.Ocr.Base.so'
|
|
33
35
|
elif os_name =="Darwin":
|
|
34
36
|
lib_pathXls = r'./Spire.Xls.Base.dylib'
|
|
35
37
|
lib_pathDoc = r'./Spire.Doc.Base.dylib'
|
|
36
38
|
lib_pathPdf = r'./Spire.Pdf.Base.dylib'
|
|
37
39
|
lib_pathPpt = r'./Spire.Presentation.Base.dylib'
|
|
40
|
+
lib_pathOcr = r'./Spire.Ocr.Base.dylib'
|
|
38
41
|
else:
|
|
39
42
|
lib_pathXls = r'./Spire.Xls.Base.dll'
|
|
40
43
|
lib_pathDoc = r'./Spire.Doc.Base.dll'
|
|
41
44
|
lib_pathPdf = r'./Spire.Pdf.Base.dll'
|
|
42
45
|
lib_pathPpt = r'./Spire.Presentation.Base.dll'
|
|
46
|
+
lib_pathOcr = r'./Spire.Ocr.Base.dll'
|
|
43
47
|
dlllibXls = None
|
|
44
48
|
dlllibXls = LoadLib(lib_pathXls)
|
|
45
49
|
dlllibDoc = LoadLib(lib_pathDoc)
|
|
46
50
|
dlllibPdf = LoadLib(lib_pathPdf)
|
|
47
51
|
dlllibPpt = LoadLib(lib_pathPpt)
|
|
52
|
+
dlllibOcr = LoadLib(lib_pathOcr)
|
|
48
53
|
dlllib = dlllibXls
|
|
49
54
|
if dlllibXls != None and __package__ == "spire.xls.common":
|
|
50
55
|
dlllib = dlllibXls
|
|
@@ -54,6 +59,8 @@ elif dlllibPdf != None and __package__ == "spire.pdf.common":
|
|
|
54
59
|
dlllib = dlllibPdf
|
|
55
60
|
elif dlllibPpt != None and __package__ == "spire.presentation.common":
|
|
56
61
|
dlllib = dlllibPpt
|
|
62
|
+
elif dlllibOcr != None and __package__ == "spire.ocr.common":
|
|
63
|
+
dlllib = dlllibOcr
|
|
57
64
|
|
|
58
65
|
def GetDllLibXls():
|
|
59
66
|
#if dlllibXls != None:
|
|
@@ -80,6 +87,13 @@ def GetDllLibPpt():
|
|
|
80
87
|
#if dlllibPpt != None:
|
|
81
88
|
dlllib = dlllibPpt
|
|
82
89
|
return dlllibPpt;
|
|
90
|
+
def GetDllLibOcr():
|
|
91
|
+
#if dlllibPdf == None:
|
|
92
|
+
# dlllibPdf = LoadLib(lib_pathPdf)
|
|
93
|
+
#if dlllibPdf != None:
|
|
94
|
+
dlllib = dlllibOcr
|
|
95
|
+
return dlllibOcr;
|
|
96
|
+
|
|
83
97
|
def ChangeHandleToXls():
|
|
84
98
|
GetDllLibXls()
|
|
85
99
|
def ChangeHandleToDoc():
|
|
@@ -88,6 +102,8 @@ def ChangeHandleToPdf():
|
|
|
88
102
|
GetDllLibPdf()
|
|
89
103
|
def ChangeHandleToPpt():
|
|
90
104
|
GetDllLibPpt()
|
|
105
|
+
def ChangeHandleToOcr():
|
|
106
|
+
GetDllLibOcr()
|
|
91
107
|
|
|
92
108
|
class SpireException(Exception):
|
|
93
109
|
"""Custom Exception"""
|
|
@@ -97,23 +113,78 @@ class SpireException(Exception):
|
|
|
97
113
|
|
|
98
114
|
def CallCFunction(func, *args, **kwargs):
|
|
99
115
|
if hasattr(func, 'argtypes') and func.argtypes is not None:
|
|
100
|
-
|
|
116
|
+
if os_name == "Windows":
|
|
117
|
+
new_argtypes = [c_int if arg == c_bool else arg for arg in func.argtypes]
|
|
118
|
+
if len(new_argtypes) == len(args):
|
|
119
|
+
new_argtypes.append(POINTER(c_uint64))
|
|
120
|
+
else:
|
|
121
|
+
arg_count = len(args)
|
|
122
|
+
new_argtypes = [c_int if arg == c_bool else arg for arg in func.argtypes[:arg_count]]
|
|
123
|
+
new_argtypes.append(c_void_p)
|
|
101
124
|
func.argtypes = new_argtypes
|
|
102
125
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
# Write the initial values to the allocated memory
|
|
106
|
-
memmove(data, byref(c_uint64(0)), sizeof(c_uint64))
|
|
107
|
-
args = list(args) +[data]
|
|
126
|
+
error_code_buffer = c_uint64(0)
|
|
127
|
+
args = list(args) + [byref(error_code_buffer)]
|
|
108
128
|
|
|
109
129
|
result = func(*args, **kwargs)
|
|
110
|
-
modified_value =
|
|
111
|
-
if
|
|
130
|
+
modified_value = error_code_buffer.value
|
|
131
|
+
if modified_value != 0:
|
|
112
132
|
info = PtrToStr(modified_value)
|
|
113
133
|
raise SpireException(info)
|
|
114
134
|
return result
|
|
115
135
|
|
|
116
|
-
if __package__ == "spire.
|
|
136
|
+
if __package__ == "spire.ocr.common":
|
|
137
|
+
from spire.ocr.common.SpireObject import SpireObject
|
|
138
|
+
|
|
139
|
+
from spire.ocr.common.Common import IntPtrArray
|
|
140
|
+
from spire.ocr.common.Common import GetObjVectorFromArray
|
|
141
|
+
from spire.ocr.common.Common import GetVectorFromArray
|
|
142
|
+
from spire.ocr.common.Common import GetStrVectorFromArray
|
|
143
|
+
from spire.ocr.common.Common import GetIntPtrArray
|
|
144
|
+
from spire.ocr.common.Common import GetByteArray
|
|
145
|
+
from spire.ocr.common.Common import GetIntValue
|
|
146
|
+
from spire.ocr.common.Common import GetBytesFromArray
|
|
147
|
+
from spire.ocr.common.Common import PtrToStr
|
|
148
|
+
from spire.ocr.common.Common import ReleasePtr
|
|
149
|
+
from spire.ocr.common.Common import StrToPtr
|
|
150
|
+
|
|
151
|
+
from spire.ocr.common.RegexOptions import RegexOptions
|
|
152
|
+
from spire.ocr.common.CultureInfo import CultureInfo
|
|
153
|
+
from spire.ocr.common.Boolean import Boolean
|
|
154
|
+
from spire.ocr.common.Byte import Byte
|
|
155
|
+
from spire.ocr.common.Char import Char
|
|
156
|
+
from spire.ocr.common.Int16 import Int16
|
|
157
|
+
from spire.ocr.common.Int32 import Int32
|
|
158
|
+
from spire.ocr.common.Int64 import Int64
|
|
159
|
+
from spire.ocr.common.PixelFormat import PixelFormat
|
|
160
|
+
from spire.ocr.common.Size import Size
|
|
161
|
+
from spire.ocr.common.SizeF import SizeF
|
|
162
|
+
from spire.ocr.common.Point import Point
|
|
163
|
+
from spire.ocr.common.PointF import PointF
|
|
164
|
+
from spire.ocr.common.Rectangle import Rectangle
|
|
165
|
+
from spire.ocr.common.RectangleF import RectangleF
|
|
166
|
+
from spire.ocr.common.Single import Single
|
|
167
|
+
from spire.ocr.common.TimeSpan import TimeSpan
|
|
168
|
+
from spire.ocr.common.UInt16 import UInt16
|
|
169
|
+
from spire.ocr.common.UInt32 import UInt32
|
|
170
|
+
from spire.ocr.common.UInt64 import UInt64
|
|
171
|
+
from spire.ocr.common.Stream import Stream
|
|
172
|
+
from spire.ocr.common.License import License
|
|
173
|
+
from spire.ocr.common.Color import Color
|
|
174
|
+
from spire.ocr.common.DateTime import DateTime
|
|
175
|
+
from spire.ocr.common.Double import Double
|
|
176
|
+
from spire.ocr.common.EmfType import EmfType
|
|
177
|
+
from spire.ocr.common.Encoding import Encoding
|
|
178
|
+
from spire.ocr.common.FontStyle import FontStyle
|
|
179
|
+
from spire.ocr.common.GraphicsUnit import GraphicsUnit
|
|
180
|
+
from spire.ocr.common.ICollection import ICollection
|
|
181
|
+
from spire.ocr.common.IDictionary import IDictionary
|
|
182
|
+
from spire.ocr.common.IEnumerable import IEnumerable
|
|
183
|
+
from spire.ocr.common.IEnumerator import IEnumerator
|
|
184
|
+
from spire.ocr.common.IList import IList
|
|
185
|
+
from spire.ocr.common.String import String
|
|
186
|
+
from spire.ocr.common.Regex import Regex
|
|
187
|
+
elif __package__ == "spire.pdf.common" :
|
|
117
188
|
from spire.pdf.common.SpireObject import SpireObject
|
|
118
189
|
|
|
119
190
|
from spire.pdf.common.Common import IntPtrArray
|
|
@@ -67,17 +67,5 @@ class ConditionValue ( SpireObject,IConditionValue) :
|
|
|
67
67
|
GetDllLibXls().ConditionValue_set_Value.argtypes=[c_void_p, c_void_p]
|
|
68
68
|
CallCFunction(GetDllLibXls().ConditionValue_set_Value, self.Ptr, value.Ptr)
|
|
69
69
|
|
|
70
|
-
def m_condtionValue(self)->'IConditionValue':
|
|
71
|
-
"""
|
|
72
|
-
Gets the internal condition value object.
|
|
73
|
-
|
|
74
|
-
Returns:
|
|
75
|
-
IConditionValue: The internal condition value.
|
|
76
|
-
"""
|
|
77
|
-
GetDllLibXls().ConditionValue_m_condtionValue.argtypes=[c_void_p]
|
|
78
|
-
GetDllLibXls().ConditionValue_m_condtionValue.restype=c_void_p
|
|
79
|
-
intPtr = CallCFunction(GetDllLibXls().ConditionValue_m_condtionValue, self.Ptr)
|
|
80
|
-
ret = None if intPtr==None else XlsConditionValue(intPtr)
|
|
81
|
-
return ret
|
|
82
70
|
|
|
83
71
|
|
|
@@ -66,8 +66,7 @@ class XlsConditionValue ( SpireObject, IConditionValue) :
|
|
|
66
66
|
GetDllLibXls().XlsConditionValue_set_Value.argtypes=[c_void_p, c_void_p]
|
|
67
67
|
CallCFunction(GetDllLibXls().XlsConditionValue_set_Value, self.Ptr, value.Ptr)
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
def op_Equality(first:'XlsConditionValue',second:'XlsConditionValue')->bool:
|
|
69
|
+
def __eq__(self,second:'XlsConditionValue')->bool:
|
|
71
70
|
"""
|
|
72
71
|
Determines whether two XlsConditionValue instances are equal.
|
|
73
72
|
|
|
@@ -77,7 +76,7 @@ class XlsConditionValue ( SpireObject, IConditionValue) :
|
|
|
77
76
|
Returns:
|
|
78
77
|
bool: True if equal; otherwise, False.
|
|
79
78
|
"""
|
|
80
|
-
intPtrfirst:c_void_p =
|
|
79
|
+
intPtrfirst:c_void_p = self.Ptr
|
|
81
80
|
intPtrsecond:c_void_p = second.Ptr
|
|
82
81
|
|
|
83
82
|
GetDllLibXls().XlsConditionValue_op_Equality.argtypes=[ c_void_p,c_void_p]
|
|
@@ -85,8 +84,7 @@ class XlsConditionValue ( SpireObject, IConditionValue) :
|
|
|
85
84
|
ret = CallCFunction(GetDllLibXls().XlsConditionValue_op_Equality, intPtrfirst,intPtrsecond)
|
|
86
85
|
return ret
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
def op_Inequality(first:'XlsConditionValue',second:'XlsConditionValue')->bool:
|
|
87
|
+
def __ne__(self,second:'XlsConditionValue')->bool:
|
|
90
88
|
"""
|
|
91
89
|
Determines whether two XlsConditionValue instances are not equal.
|
|
92
90
|
|
|
@@ -96,7 +94,7 @@ class XlsConditionValue ( SpireObject, IConditionValue) :
|
|
|
96
94
|
Returns:
|
|
97
95
|
bool: True if not equal; otherwise, False.
|
|
98
96
|
"""
|
|
99
|
-
intPtrfirst:c_void_p =
|
|
97
|
+
intPtrfirst:c_void_p = self.Ptr
|
|
100
98
|
intPtrsecond:c_void_p = second.Ptr
|
|
101
99
|
|
|
102
100
|
GetDllLibXls().XlsConditionValue_op_Inequality.argtypes=[ c_void_p,c_void_p]
|
|
@@ -301,6 +301,7 @@ class IChartErrorBars (SpireObject) :
|
|
|
301
301
|
workbook.SaveToFile("Chart.xlsx")
|
|
302
302
|
|
|
303
303
|
"""
|
|
304
|
+
from spire.xls.charts.ChartShadow import ChartShadow
|
|
304
305
|
GetDllLibXls().IChartErrorBars_get_Shadow.argtypes=[c_void_p]
|
|
305
306
|
GetDllLibXls().IChartErrorBars_get_Shadow.restype=c_void_p
|
|
306
307
|
intPtr = CallCFunction(GetDllLibXls().IChartErrorBars_get_Shadow, self.Ptr)
|
|
@@ -315,6 +316,7 @@ class IChartErrorBars (SpireObject) :
|
|
|
315
316
|
Gets the chart3 D options.
|
|
316
317
|
|
|
317
318
|
"""
|
|
319
|
+
from spire.xls.Format3D import Format3D
|
|
318
320
|
GetDllLibXls().IChartErrorBars_get_Chart3DOptions.argtypes=[c_void_p]
|
|
319
321
|
GetDllLibXls().IChartErrorBars_get_Chart3DOptions.restype=c_void_p
|
|
320
322
|
intPtr = CallCFunction(GetDllLibXls().IChartErrorBars_get_Chart3DOptions, self.Ptr)
|
|
@@ -19,6 +19,7 @@ class IChartTrendLine (SpireObject) :
|
|
|
19
19
|
Gets the IThreeDFormat object. Read-only.[Deprecated]
|
|
20
20
|
|
|
21
21
|
"""
|
|
22
|
+
from spire.xls.Format3D import Format3D
|
|
22
23
|
GetDllLibXls().IChartTrendLine_get_Chart3DOptions.argtypes=[c_void_p]
|
|
23
24
|
GetDllLibXls().IChartTrendLine_get_Chart3DOptions.restype=c_void_p
|
|
24
25
|
intPtr = CallCFunction(GetDllLibXls().IChartTrendLine_get_Chart3DOptions, self.Ptr)
|
|
@@ -178,6 +178,7 @@ class IListObject (SpireObject) :
|
|
|
178
178
|
workbook.SaveToFile("Table.xlsx")
|
|
179
179
|
|
|
180
180
|
"""
|
|
181
|
+
from spire.xls.XlsWorksheet import XlsWorksheet
|
|
181
182
|
GetDllLibXls().IListObject_get_Worksheet.argtypes=[c_void_p]
|
|
182
183
|
GetDllLibXls().IListObject_get_Worksheet.restype=c_void_p
|
|
183
184
|
intPtr = CallCFunction(GetDllLibXls().IListObject_get_Worksheet, self.Ptr)
|
|
@@ -434,6 +435,7 @@ class IListObject (SpireObject) :
|
|
|
434
435
|
Gets the AutoFiltersCollection collection in the table. Read-only.
|
|
435
436
|
|
|
436
437
|
"""
|
|
438
|
+
from spire.xls.collection.AutoFiltersCollection import AutoFiltersCollection
|
|
437
439
|
GetDllLibXls().IListObject_get_AutoFilters.argtypes=[c_void_p]
|
|
438
440
|
GetDllLibXls().IListObject_get_AutoFilters.restype=c_void_p
|
|
439
441
|
intPtr = CallCFunction(GetDllLibXls().IListObject_get_AutoFilters, self.Ptr)
|
|
@@ -43,6 +43,7 @@ class IOleObject (SpireObject) :
|
|
|
43
43
|
Returns:
|
|
44
44
|
IXLSRange: The range representing the location of the OLE object.
|
|
45
45
|
"""
|
|
46
|
+
from spire.xls.XlsRange import XlsRange
|
|
46
47
|
GetDllLibXls().IOleObject_get_Location.argtypes=[c_void_p]
|
|
47
48
|
GetDllLibXls().IOleObject_get_Location.restype=c_void_p
|
|
48
49
|
intPtr = CallCFunction(GetDllLibXls().IOleObject_get_Location, self.Ptr)
|
|
@@ -118,6 +119,7 @@ class IOleObject (SpireObject) :
|
|
|
118
119
|
Returns:
|
|
119
120
|
IPictureShape: The picture shape object associated with the OLE object.
|
|
120
121
|
"""
|
|
122
|
+
from spire.xls.XlsBitmapShape import XlsBitmapShape
|
|
121
123
|
GetDllLibXls().IOleObject_get_Shape.argtypes=[c_void_p]
|
|
122
124
|
GetDllLibXls().IOleObject_get_Shape.restype=c_void_p
|
|
123
125
|
intPtr = CallCFunction(GetDllLibXls().IOleObject_get_Shape, self.Ptr)
|
|
@@ -84,9 +84,9 @@ class IShapes ( IEnumerable[XlsShape]) :
|
|
|
84
84
|
|
|
85
85
|
"""
|
|
86
86
|
|
|
87
|
-
GetDllLibXls().
|
|
88
|
-
GetDllLibXls().
|
|
89
|
-
intPtr = CallCFunction(GetDllLibXls().
|
|
87
|
+
GetDllLibXls().IShapes_AddCommentCB.argtypes=[c_void_p ,c_void_p,c_bool]
|
|
88
|
+
GetDllLibXls().IShapes_AddCommentCB.restype=c_void_p
|
|
89
|
+
intPtr = CallCFunction(GetDllLibXls().IShapes_AddCommentCB, self.Ptr, commentText,bIsParseOptions)
|
|
90
90
|
ret = None if intPtr==None else XlsComment(intPtr)
|
|
91
91
|
return ret
|
|
92
92
|
|
|
@@ -111,9 +111,9 @@ class IShapes ( IEnumerable[XlsShape]) :
|
|
|
111
111
|
"""
|
|
112
112
|
|
|
113
113
|
"""
|
|
114
|
-
GetDllLibXls().
|
|
115
|
-
GetDllLibXls().
|
|
116
|
-
intPtr = CallCFunction(GetDllLibXls().
|
|
114
|
+
GetDllLibXls().IShapes_AddComment.argtypes=[c_void_p]
|
|
115
|
+
GetDllLibXls().IShapes_AddComment.restype=c_void_p
|
|
116
|
+
intPtr = CallCFunction(GetDllLibXls().IShapes_AddComment, self.Ptr)
|
|
117
117
|
ret = None if intPtr==None else XlsComment(intPtr)
|
|
118
118
|
return ret
|
|
119
119
|
|
|
@@ -188,7 +188,7 @@ class IPivotTableOptions (SpireObject) :
|
|
|
188
188
|
CallCFunction(GetDllLibXls().IPivotTableOptions_set_EnableFieldProperties, self.Ptr, value)
|
|
189
189
|
|
|
190
190
|
@property
|
|
191
|
-
def Indent(self)->
|
|
191
|
+
def Indent(self)->int:
|
|
192
192
|
"""
|
|
193
193
|
Gets or sets the indent value for the PivotTable.
|
|
194
194
|
|
|
@@ -196,15 +196,14 @@ class IPivotTableOptions (SpireObject) :
|
|
|
196
196
|
UInt32: The indent value.
|
|
197
197
|
"""
|
|
198
198
|
GetDllLibXls().IPivotTableOptions_get_Indent.argtypes=[c_void_p]
|
|
199
|
-
GetDllLibXls().IPivotTableOptions_get_Indent.restype=
|
|
200
|
-
|
|
201
|
-
ret = None if intPtr==None else UInt32(intPtr)
|
|
199
|
+
GetDllLibXls().IPivotTableOptions_get_Indent.restype=c_int
|
|
200
|
+
ret = CallCFunction(GetDllLibXls().IPivotTableOptions_get_Indent, self.Ptr)
|
|
202
201
|
return ret
|
|
203
202
|
|
|
204
203
|
@Indent.setter
|
|
205
|
-
def Indent(self, value:
|
|
206
|
-
GetDllLibXls().IPivotTableOptions_set_Indent.argtypes=[c_void_p,
|
|
207
|
-
CallCFunction(GetDllLibXls().IPivotTableOptions_set_Indent, self.Ptr, value
|
|
204
|
+
def Indent(self, value:int):
|
|
205
|
+
GetDllLibXls().IPivotTableOptions_set_Indent.argtypes=[c_void_p, c_int]
|
|
206
|
+
CallCFunction(GetDllLibXls().IPivotTableOptions_set_Indent, self.Ptr, value)
|
|
208
207
|
|
|
209
208
|
@property
|
|
210
209
|
def ErrorString(self)->str:
|
|
@@ -490,18 +489,17 @@ class IPivotTableOptions (SpireObject) :
|
|
|
490
489
|
CallCFunction(GetDllLibXls().IPivotTableOptions_set_ShowDrillIndicators, self.Ptr, value)
|
|
491
490
|
|
|
492
491
|
@property
|
|
493
|
-
def DataPosition(self)->
|
|
492
|
+
def DataPosition(self)->int:
|
|
494
493
|
"""
|
|
495
494
|
|
|
496
495
|
"""
|
|
497
496
|
GetDllLibXls().IPivotTableOptions_get_DataPosition.argtypes=[c_void_p]
|
|
498
|
-
GetDllLibXls().IPivotTableOptions_get_DataPosition.restype=
|
|
499
|
-
|
|
500
|
-
ret = None if intPtr==None else Int16(intPtr)
|
|
497
|
+
GetDllLibXls().IPivotTableOptions_get_DataPosition.restype=c_int
|
|
498
|
+
ret = CallCFunction(GetDllLibXls().IPivotTableOptions_get_DataPosition, self.Ptr)
|
|
501
499
|
return ret
|
|
502
500
|
|
|
503
501
|
@DataPosition.setter
|
|
504
|
-
def DataPosition(self, value:
|
|
505
|
-
GetDllLibXls().IPivotTableOptions_set_DataPosition.argtypes=[c_void_p,
|
|
506
|
-
CallCFunction(GetDllLibXls().IPivotTableOptions_set_DataPosition, self.Ptr, value
|
|
502
|
+
def DataPosition(self, value:int):
|
|
503
|
+
GetDllLibXls().IPivotTableOptions_set_DataPosition.argtypes=[c_void_p, c_int]
|
|
504
|
+
CallCFunction(GetDllLibXls().IPivotTableOptions_set_DataPosition, self.Ptr, value)
|
|
507
505
|
|
spire/xls/lib/Spire.Xls.Base.dll
CHANGED
|
Binary file
|
|
@@ -157,7 +157,7 @@ class PivotDataField ( SpireObject, IPivotDataField, ICloneParent) :
|
|
|
157
157
|
GetDllLibXls().PivotDataField_Clone.argtypes=[c_void_p ,c_void_p]
|
|
158
158
|
GetDllLibXls().PivotDataField_Clone.restype=c_void_p
|
|
159
159
|
intPtr = CallCFunction(GetDllLibXls().PivotDataField_Clone, self.Ptr, intPtrparent)
|
|
160
|
-
ret = None if intPtr==None else
|
|
160
|
+
ret = None if intPtr==None else PivotDataField(intPtr)
|
|
161
161
|
return ret
|
|
162
162
|
|
|
163
163
|
|
|
@@ -79,9 +79,9 @@ class PivotReportFilter (SpireObject) :
|
|
|
79
79
|
Args:
|
|
80
80
|
fieldName (str): The name of the field to use as a report filter.
|
|
81
81
|
"""
|
|
82
|
-
GetDllLibXls().
|
|
83
|
-
GetDllLibXls().
|
|
84
|
-
intPtr = CallCFunction(GetDllLibXls().
|
|
82
|
+
GetDllLibXls().PivotReportFilter_CreateF.argtypes=[ c_void_p]
|
|
83
|
+
GetDllLibXls().PivotReportFilter_CreateF.restype = c_void_p
|
|
84
|
+
intPtr = CallCFunction(GetDllLibXls().PivotReportFilter_CreateF,fieldName)
|
|
85
85
|
|
|
86
86
|
super(PivotReportFilter, self).__init__(intPtr)
|
|
87
87
|
"""
|
|
@@ -124,7 +124,7 @@ class PivotReportFilter (SpireObject) :
|
|
|
124
124
|
GetDllLibXls().PivotReportFilter_get_FilterItemStrings.argtypes=[c_void_p]
|
|
125
125
|
GetDllLibXls().PivotReportFilter_get_FilterItemStrings.restype=IntPtrArray
|
|
126
126
|
intPtrArray = CallCFunction(GetDllLibXls().PivotReportFilter_get_FilterItemStrings, self.Ptr)
|
|
127
|
-
ret = GetStrVectorFromArray(intPtrArray,
|
|
127
|
+
ret = GetStrVectorFromArray(intPtrArray, c_void_p)
|
|
128
128
|
return ret
|
|
129
129
|
|
|
130
130
|
|