Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 30th, 2006, 04:04 PM
Registered User
Join Date: Jun 2006
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

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.


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

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