Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old April 11th, 2008, 02:38 AM
Registered User
Join Date: Apr 2008
Location: salem, , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default pass parameter in crystal report

how to pass parameter in crystal report in asp.net

Reply With Quote
  #2 (permalink)  
Old April 11th, 2008, 02:45 AM
Friend of Wrox
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post

Just thought I would clean your message up:

Hi there, can someone please tell me how to pass parameter in crystal report in asp.net,


Thats better :)

The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://robzyc.spaces.live.com
Reply With Quote
  #3 (permalink)  
Old April 12th, 2008, 02:41 AM
Imar's Avatar
Wrox Author
Points: 71,768, Level: 100
Points: 71,768, Level: 100 Points: 71,768, Level: 100 Points: 71,768, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,032
Thanks: 80
Thanked 1,580 Times in 1,557 Posts

Or even better:

Hi there, I am working in a Windows app / Web app / Windows Service (choose one that applies) which uses Crystal Reports. The report expects parameters that a user must be able to supply. I can't figure out the code required to pass the parameters.

I tried X, Y and Z and used this and that code. I also searched Google and found this and that and but I can't make it work as I keep getting error T and S. Can anyone help me to make this work?

This question provides context, useful information and shows you have done some research yourself. It certainly doesn't look like you want us to do your work.


Imar Spaanjaars
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
  #4 (permalink)  
Old April 14th, 2008, 12:11 PM
Registered User
Join Date: Mar 2008
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Hi srivigdev,

These are the steps I usually take to create a crystal report in a web page.

1. Create a store procedure
2. Create an xml schema from the stored procedure
3. Build the report from the xml schema
4. Populate the report by passing the parameter to the stored procedure in Page_Init().

This has always seemed really cumbersome, but have found no other way to accomplish my task -- I'm open to suggestions from anyone else reading this.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report Parameter pass from c# shriji.1111 Crystal Reports 4 June 14th, 2011 11:38 AM
How to pass parameter to a crystal report using c# preetakrish BOOK: Professional Crystal Reports for VS.NET 16 November 19th, 2009 04:26 AM
How to pass parameter to sub-report . azeerum Access 1 January 3rd, 2005 03:26 PM
How to Pass parameter to chart in crystal Report. simsimlhr C# 3 April 12th, 2004 11:04 AM
Pass parameter to store procedure & Crystal Report quinn Classic ASP Professional 0 March 10th, 2004 01:16 PM

All times are GMT -4. The time now is 07:16 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.