For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > May 2005 > help with using LineObjects









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help with using LineObjects
Tash

2005-05-31, 9:00 pm

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
------------------------------------------------------------

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com