Print Page | Close Window

Empty Formula Field while displaying Report

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=3367
Printed Date: 19 May 2024 at 6:56am


Topic: Empty Formula Field while displaying Report
Posted By: mjay83
Subject: Empty Formula Field while displaying Report
Date Posted: 06 Jun 2008 at 11:34am
I have several Formula fields in my crystal report, I using C#.Net 2003 to call the crystal report and pass value into the Formula fields for display. Example code:

rpt.DataDefinition.FormulaFields["DateTime"].Text = "'"+sDateTime+"'";

in which rpt is defined as ReportDocument in the class.

When the report is display, all my Formula fields is empty like the below screen shot:


All the Values will only be displayed when i press Refresh button on the crystal report viewer like the screen shot below:


Any1 have any idea to solve it?I am using Crystal report 2008 incorporated into .Net2003. Any help would be appreciated.

Thanks.



Print Page | Close Window