When I dim a Spire.Xls.Core.Spreadsheet.Shapes.XlsShape,
and add this shape using Spire.Xls.Worksheet.PrstGeomShapes.AddPrstGeomShape() method.
The rotation property on XlsShape has no effect on the shape.
I am using
spreadsheet version 3.1.2.8040
XLS version 9.1.4.60040
Is this normal?
- Code: Select all
Dim sp As Spire.Xls.Workbook
sp = New Spire.Xls.Workbook
sp.Worksheets.Add("1")
Dim sheet1 As Spire.Xls.Worksheet
sheet1 = sp.Worksheets("1")
Dim XLSShape As Spire.Xls.Core.Spreadsheet.Shapes.XlsShape
XLSShape = sheet1.PrstGeomShapes.AddPrstGeomShape(2, 2, 18, 18, Spire.Xls.PrstGeomShapeType.Star4)
XLSShape.Rotation = 45
XLSShape.LeftColumnOffset = 100
XLSShape.TopRowOffset = 25
sp.SaveToFile(Filepath & FileName)
Thanks for your help.