472,958 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 1245
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

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

Similar topics

0
by: Aaron | last post by:
The following code works fine when previewing a Crystal report using ASP, EXCEPT when it gets to a report using a SubReport and its associated parameters. The whole report just comes up blank with...
1
by: Maria | last post by:
Hello! I am new to Crystal reports an I have problems passing parameters form outside to Crystal report an creating a report with data from more than one table This is the problem: I have to...
0
by: Craig Faulkner | last post by:
I have been fighting through my first crystal report in VS2003.NET and have made some headway. Here is what I've done: 1. Created a crystal report in VS2003 from a SQL stored procedure with...
0
by: stephan | last post by:
I know that this has been beaten to death but I can't seem to resolve my issues (I have 2 of them). I have created a class that exposes a public method which returns a datatable as a datasource...
0
by: Karel | last post by:
Hi, I'm having a problem with passing parameters to Crystal Report. I'm using the following cod (C#): ParameterFields paramFields = new ParameterFields (); ParameterField paramField = new...
1
by: raf_z | last post by:
Hi, I'm running a website with Asp.NET, and on one of the pages i have a crystal report with 3 user-populated parameters. However, not all params might be selected. Example: Parameters: 1....
1
by: Mariame | last post by:
Hi Everyone, i use crystal report & in the "Field Explorer" i select the table that i want to appear in report & make a "Where" Clause & i determine some parameters. The problem is How can to...
10
by: Adis | last post by:
Asp.Net Visual Studio 2003 SQL Server. Hi, Obtaining Data Based Upon Multiple Selections From a ListBox... I have database in Sqlserver and ListBox (Multiple Selection Mode) in my Visual...
0
by: lewindha | last post by:
Hi all I am new to ASP.Net and Crystal Reports. We have VS.Net 2003 and Crystal 10 where I work. I have successfully been able to view reports in a web page. My problem now is that I have a...
0
by: umeshpotdar | last post by:
hi friends i m doing crystal reports. i want to pass parameters to crystal report i mean to say that i created one form in VB.Net 2008 on that i took two fields FromDate & ToDate & report...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.