Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 30th, 2006, 04:04 PM
Registered User
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# Crystal Report Problem

I am working on C# windows application that uses crystal reports. I have a formula field. This works fine when I preview in crystal, but gives an error message when i try it thru my application.
I am using crystal report XI. following is the code for formula field:
If InStr({q_PortfolioPerfStatsDetails_Base;1.TestDesc ription2},"Expected Asset Liquidation Months",1) =1 Then
    Formula = cstr(ceiling({q_PortfolioPerfStatsDetails_Base;1.P erfValue2}))
elseIf IsNull({q_PortfolioPerfStatsDetails_Base;1.PerfVal ue2}) Then
    formula = "N/A"
    formula = CStr({q_PortfolioPerfStatsDetails_Base;1.PerfValue 2}, _
                IIf({q_PortfolioPerfStatsDetails_Base;1.DisplayTes tAsPct2} = 1,2,0)) + _
                IIf({q_PortfolioPerfStatsDetails_Base;1.DisplayTes tAsPct2} = 1,"%","")
End If

Can anybody help me...

Thanks and Regards

Reply With Quote
  #2 (permalink)  
Old September 10th, 2013, 02:18 AM
Posts: n/a
Default Crystal Reports formula field

formula field http://csharp.net-informations.com/c...mula-field.htm c# crystal reports formula field tutorial. It will solve your problems.

Reply With Quote

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
Problem In Crystal report baludotnet Crystal Reports 1 December 21st, 2006 03:04 AM
Problem with Crystal Report prankur ASP.NET 1.0 and 1.1 Professional 0 January 7th, 2006 03:45 AM
Crystal Report Problem HELP ! Melibe Beginning VB 6 2 August 23rd, 2005 02:09 PM
Crystal Report Problem harland Crystal Reports 0 November 19th, 2004 02:09 AM
Problem in crystal report Chatanya Crystal Reports 1 October 7th, 2004 03:31 AM

All times are GMT -4. The time now is 04:02 AM.

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