1
strNAme = ds.Tables("report").Rows(i).Item("LabelName")
Dim Line As LineObject = DirectCast(rpt.ReportDefinition.ReportObjects(strNAme), LineObject)

Line.Left = ds.Tables("report").Rows(i).Item("Align_Left")' ERROR IS HERE
Line.Top = ds.Tables("report").Rows(i).Item("Align_Top")

Line.Right = ds.Tables("report").Rows(i).Item("Align_Right")
Line.Bottom = ds.Tables("report").Rows(i).Item("Align_Bottom")    

我在 Line.Left 上遇到错误:

System.Runtime.InteropServices.COMException 被捕获

错误代码 = -2147213284

Message="线对象的坐标无效。仅支持垂直或水平线。"

4

0 回答 0