473,379 Members | 1,260 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,379 software developers and data experts.

Parameters in Crystal Reports.Net

Dear All,

I am quite new to crystal reports.Net.I have made a web Form with a drop
down box in it. I load 2 values in the drop down box as follows in Form Load
event.

dropdownbox.items.add("Doctors")
dropdownbox.items.add("Dentist")

Now in front of this dropdown box I have a button called GO. So what I
basically
want is when I click this button. It should show me the report in a new
window
depending on what I select. I am storing the value of the dropdownbox in a
session variable.

Session("Profession")= dropdownbox.SelectedItem.text

I have done some research on the internet.I found a lot of information.
regarding my problem.But one thing which is confusing me is the following
line:

Dim parameterfieldDefinition as
CrystalDecisions.Crystalreports.Engine.ParameterFi eldDefinition

parameterfieldDefinition =
MyReport.DataDefinition.ParameterFields.Item("NAME ")

The problem is that in my case I dont know what should I put down in place
of NAME in the above line. I tried to put Session("Profession") but it
gives an error. Honestly speaking I can't figure out the meaning of
ParameterFieldDefinition. Can any one explain this to me please. and also
what should I put here in my case.

Any help will be much appreciated.

cheers,
Sunil Sabir

Nov 18 '05 #1
1 1179
Sunil,

are you using SQL server for your CR you mentioned about?
could you display your report with a web browser? because i tried many times
(with SQL server) and always got "Logon failed" error everytime i view the
report with a browser
would you please share your code with us?

thanks,
andy

"Sunil Sabir" <Su********@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
Dear All,

I am quite new to crystal reports.Net.I have made a web Form with a drop
down box in it. I load 2 values in the drop down box as follows in Form Load event.

dropdownbox.items.add("Doctors")
dropdownbox.items.add("Dentist")

Now in front of this dropdown box I have a button called GO. So what I
basically
want is when I click this button. It should show me the report in a new
window
depending on what I select. I am storing the value of the dropdownbox in a session variable.

Session("Profession")= dropdownbox.SelectedItem.text

I have done some research on the internet.I found a lot of information.
regarding my problem.But one thing which is confusing me is the following
line:

Dim parameterfieldDefinition as
CrystalDecisions.Crystalreports.Engine.ParameterFi eldDefinition

parameterfieldDefinition =
MyReport.DataDefinition.ParameterFields.Item("NAME ")

The problem is that in my case I dont know what should I put down in place
of NAME in the above line. I tried to put Session("Profession") but it
gives an error. Honestly speaking I can't figure out the meaning of
ParameterFieldDefinition. Can any one explain this to me please. and also
what should I put here in my case.

Any help will be much appreciated.

cheers,
Sunil Sabir

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DLT | last post by:
I have written a VB.NET application that contains several crystal reports. I have created the reports with parameters and am passing them fine into the report the first time. But, if I change the...
1
by: Martin Dařílek | last post by:
Hi all, please can You help me with translation of function parameters provided by p2smon.dll library (Crystal Reports)? Any example, which I found, is only in VB (I don't like it :-) I would...
0
by: Tom | last post by:
We have a .NET C# web-based application using Crystal Reports 9 to display reports. One of these reports has a dozen or so parameters. I would like to avoid having to build some custom parameter...
9
by: Robert Schuldenfrei | last post by:
Hello NG, After a bit of a wait my bookstore, SoftPro of Waltham, MA, got in the Brian Bischof book: Crystal Reports .NET Programming. I have read a few books on CR, but I am very new to it,...
0
by: Robert Schuldenfrei | last post by:
Dear NG, I am learning more about Crystal Reports (CR) running under .NET. Please find my latest code at the end of this post. Here are my issues: First, and most important, is Crystal...
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...
3
by: Don Wash | last post by:
Hi There! I've posted a few days back about this issue but no solutions has been found and that's why I'm re-posting this. I'm using built-in CrystalReport that comes with VS.NET 2003 to...
3
by: Nancy | last post by:
I have the following scenario. I have some Crystal Reports that were created outside the .NET Visual Studio. These reports were designed to enter date parameters. I have developed a ASP.NET app...
19
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.