Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 21st, 2004, 01:11 PM
Authorized User
 
Join Date: Jul 2004
Location: , WI, USA.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formula Field

Hi,

I have a prebuilt report here and have to make some changes in it. The datasource and fields - everything is present on the report. Now, I have to add one more field from another table(that is not present in the datasource of the report). I am trying to do it as follows: I am creating a blank formula field on the report. Then in the code I am accessing that field and setting its text property to a data table's column. I get an error saying that 'The Field name is not known'

How should I set the datasource for the formula field progamaticaly?

My code is as follows:

MyFormula.Text = "{MyTable.MyColumn}"

When I run the report, it says - "The field name (MyColumn) is not known".

When i try using the following code:

MyFormula.Text = MyTable.rows(0)(MyColumn)

..the report is displayed with the value of zero - th record for every row in the report.

How should I set the text value of the formula field in the code (I am working with VB.NET)


Thanks in advance
Gauri
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Problem - Missing of Formula Field Result r_taduri Crystal Reports 0 July 9th, 2006 05:51 AM
formula sinha Crystal Reports 1 October 26th, 2005 12:53 PM
Help with a formula Corey Access 2 October 20th, 2005 10:48 AM
error in formula field (passing multiline String) Milan VB Components 0 September 29th, 2004 07:01 AM
Formula Ned Pro VB 6 2 September 10th, 2003 10:26 AM



All times are GMT -4. The time now is 03:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.