|
| Hey I'm trying to dynamically change the position of the lineobject in my
report. For some reason I can change the color and everything, BUT the
lineobject.top method is not working properly. Any comments, ideas.
Thanks.
------------------------------------------------------------
Dim lineSeparator As LineObject =
oRpt.ReportDefinition.ReportObjects.Item("fieldLine")
Dim fieldTransactionDescription As FieldObject =
oRpt.ReportDefinition.ReportObjects.Item("fieldTransactionDescription")
Dim ds As DataSet
Dim dR As DataRow
Dim dt As DataTable
Dim oRpt As TransactionsSearchReport ' create new report object
oRpt = New TransactionsSearchReport ' create new instance of the report
object
ds = Session("DS")
dt = ds.Tables(0)
oRpt.SetDataSource(ds.Tables(0))
For Each dR In dt.Rows
Dim transactionDescription As String =
dR("TransactionDescription")
If Len(transactionDescription) < 254 Then
lineSeparator.LineColor = Color.FromName("#000000")
lineSeparator.Top = 850 ' this line of code doesn't work
End If
Next
------------------------------------------------------------
|
|