473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

passing parameters to cystal report in asp.net

366 256MB
hi frnds

i am Designing crystal reports in asp.net with c#.net .the problem is i have to pass the parameters to the crystalreport,which i am unable understand how to pass parameters in crystalreport. i have written code for that in codebehind using c# but the problem when ever ,if any modification is done in dsigning of report ,i have to change the code(query ) in code behind.

can any one help how to pass the parameters so that change in crystalreport design may not effect the code.


thanks & regards

nmsreddi
Aug 17 '06 #1
4 2840
crystalreport has one property called "FORMULAS" u can pass values to the reports through formulas. what u have to do is, define one formula in report with @prefix. then in ur codebehind use:

CrystalReportControl.Formulas(0) = <values>

let me know, whether it works or not
Mahesh
Aug 19 '06 #2
nmsreddi
366 256MB
hi mahesh

i have tried with the hint given by u,but i didnt get the solution any how thanks for your reply ,if any idea please help.

regards

nmsreddi
Aug 21 '06 #3
have u faced any error. or exactly what happening?

let me know.

Mahesh
Aug 23 '06 #4
nmsreddi
366 256MB
hi mahesh

just i have tried the way u suggested any how now i found the solution by getting code from google.



thanks and regards

nmsreddi
Aug 24 '06 #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...
4
by: Greg Iocco | last post by:
Simple problem, but I've checked the newsgroups and couldn't find an answer. On the main swithboard is a command button to open a report. The report I built is based off a query, and the query...
2
by: Bob | last post by:
I'm new to Access projects and SQL server and am not a veteran VB programmer. There's a cry for help! I'm attempting to print the current form on screen by using a command button which the user...
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: 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...
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: Shailja | last post by:
Hi I want to use cystal reports with VB. How to use it? Do I need to add in Project-->Component menu? Kindly let me know.
2
by: khani | last post by:
Hi i have following situation in cystal report in detail section i have a field say name.now i have five duplication record like this zahid zahid zahid zahid
1
by: tatipellinaresh | last post by:
Hi, I am using reports builder for generating report. In my report iam sending parameters from one jsp to other jsp. In the second jsp parameters are coming good, when iam printing ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.