For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > June 2005 > Using lineObject in vb









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 Using lineObject in vb
Tash

2005-06-01, 4:02 pm

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

--------------------------------------------------------------

Getting the error Invalid object code in the
lineSpearator.Top= 850 line

I know that top parameter exists. But no idea why. Any help would be
appreciated.


Sponsored Links







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

Copyright 2008 codecomments.com