471,119 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

Passing parameters to crystal report

Dear sir,
I am using asp.net and i want to pass two parameters for date values(from and to) using crystal report.
Please help me.
My email id is [email removed]

Thanks and regards
Prabodh Bansal
Feb 15 '07 #1
4 1120
AricC
1,892 Expert 1GB
I would advise against posting your email address that is a great way to get spammed.
Feb 15 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
This question is being moved to the .NET forum.

ADMIN
Feb 15 '07 #3
kenobewan
4,871 Expert 4TB
What is the problem/ error that you are having?
Feb 17 '07 #4
Hi Prabodh Bansall,

Place this code where you call the report...
eg:
RptParams Params = new RptParams(this);
Params.ShowDialog();
if (lSuccess)
{
RollsByFormClass RollsByForm = new RollsByFormClass(strFormula);
RollsByForm.Show();
}

Place this code in your report form...
if (strFormula != string.Empty)
crReportDocument.DataDefinition.RecordSelectionFor mula = strFormula;

strFormula contains all the parameters you want to pass to the report and completely replaces the scoping phrases in Crystal.

eg: strFormula = "{Customer.Surname} = " + TextBox1.Text.Trim();

Good luck.

cheers,
Mark Chimes


Dear sir,
I am using asp.net and i want to pass two parameters for date values(from and to) using crystal report.
Please help me.
My email id is [email removed]

Thanks and regards
Prabodh Bansal
Mar 1 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Karel | last post: by
1 post views Thread by raf_z | last post: by
1 post views Thread by Mariame | last post: by
10 posts views Thread by Adis | last post: by
reply views Thread by lewindha | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.