Dynamically edit field in Crystal report from aspx.vb

wizzykidd

New member
Joined
Mar 11, 2011
Messages
1
Programming Experience
Beginner
I have a report that has a field called Field1

my Code is

Imports CrystalDecisions.CrystalReports.Engine
Partial Public Class Print
Inherits System.Web.UI.Page

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim rDoc As ReportDocument = New ReportDocument()
rDoc.Load("K:\other\Ceat\tester\tester\test.rpttest.rpt")
rDoc.DataDefinition.FormulaFields("Field1").Text = "test"
crView.ReportSource = rDoc
End Sub
End Class


However it does not change the text for field1 on the report.
On my report field1 is a new unbound string field.

Using VS 2008, any suggestions please.
 
Back
Top