We help IT Professionals succeed at work.

How do I set a crystal report radio button "on" or "off" in my ASP code which opens the report

countrymeister
on
1,195 Views
Last Modified: 2008-01-09
I have a crystal report written in version 8.5

I have a classic ASP page which opens the report. The report has some radio buttons, how do I set the buttons on or off from my asp code
Comment
Watch Question

Author

Commented:
Please note that there is no database calls made , just fields populated on the ASP form need to be populated on the report
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
Look at these examples   I believe there is one that shows how to pass a parameter or change a formula
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/aspxmps85.exe.asp

mlmcc

Author

Commented:
mlmcc

I went through that zipped folder, there are no examples for radio button

Author

Commented:
I found this code snippet

oRpt.FormulaFields.GetItemByName("SalaryAdjustmentFormula").Text = CStr("{Employee.Salary} * 1.08")

Is there a way the formula field can be set to Chr(153)
I tried this, but it did not work
oRpt.FormulaFields.GetItemByName("test2").AddCurrentValue(Chr(153))

Commented:
Try putting quotes around the value you're adding:

oRpt.FormulaFields.GetItemByName("test2").AddCurrentValue("Chr(153)")
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
As in your other question, I wonder if Crystal supports the extended character set (128-255)

mlmcc

Author

Commented:
mlmcc

Tried the option you suggested , it did not work

Author

Commented:
frodoman,

Also tried what you suggested it did not work

Commented:
I'm not certain 8.5 supports this.  Can you open the report and simply type chr(153) in as your formula and see if it displays on the report?

frodoman
Senior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Frodoman and mlmcc

I did verify that if I set the formula to Chr(153) and set the font to windings2 I see a round circle, which is empty. If I set it to chr(152) I see a filled circle.
Please note that the font was set to wingdings2 , wingdings does not work.
Forced accept.

Computer101
EE Admin
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.