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 =“线对象的坐标无效。只有垂直或 支持水平线。“