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

passing wildcards to crystal report

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. EmployeeID
2. First Name
3. Last Name

Sometimes the report will be generated with all 3 params populated,
sometimes with only 2, or 1. Is there any way to pass a wildcard
character for any params that aren't explicitly set by the user? I
tried passing '%' for strings, but that crashed, saying "Input string
was incorrectly formatted" or something of that sort.

I appreciate any suggestions or workarounds.
Thanks.

Rafael Zavulunov.

Nov 17 '05 #1
1 2505
R,

No wildcards as such. You have several options, though,

a) If the parameter values are to be used for selection of rows (WHERE
clause of the query), consider using the RecordSelectionFormula property
instead of parameters. You in C# read the values of the params, and generate
the selection formula to pass to the report.
b) Send the parameters to Crystal as they are, and use one of the Crystal
Reports formula languages (VB-like or Pascal-like) to specify the selection
formula for the records. This is more powerful in general, but might be less
eficient as it may imply that Crystal will read all the records of the
original tables and do the filtering on the client machine (in this case the
web server).

Regards - Octavio

<ra***@hotmail.com> escribió en el mensaje
news:11**********************@g47g2000cwa.googlegr oups.com...
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. EmployeeID
2. First Name
3. Last Name

Sometimes the report will be generated with all 3 params populated,
sometimes with only 2, or 1. Is there any way to pass a wildcard
character for any params that aren't explicitly set by the user? I
tried passing '%' for strings, but that crashed, saying "Input string
was incorrectly formatted" or something of that sort.

I appreciate any suggestions or workarounds.
Thanks.

Rafael Zavulunov.

Nov 17 '05 #2

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

Similar topics

1
by: kvrdev1 | last post by:
I have a simple Crystal Report developed within .NET. Currently, it displays all fields from a view. Could someone please tell me how I could pass a parameter to the report to only display the...
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: 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...
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...
1
by: momo | last post by:
Hello, How do I pass an sql query to the crystal report? For example "Select * from products where productid = 215" how can i build a crystal report in vb.net based on this query which returns...
1
by: gzali | last post by:
hi, i want to send parameter on web by using crystal report,the problem is that i am using crystal report 8.5 i am using a heperlink on a report filed, when the user click on the heperlink the...
1
by: imtmub | last post by:
Hi All, I have mainpage (POselect.aspx). language VB In that page i have a textbox (txtPOId) and command button(Button1) When i press then button its should send the textbox value to Crystal...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.