Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2008, 02:38 AM
Registered User
 
Join Date: Apr 2008
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

 
Old April 11th, 2008, 02:45 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

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,

Thanks

Thats better :)

Rob
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://robzyc.spaces.live.com
 
Old April 12th, 2008, 02:41 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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.
 
Old April 14th, 2008, 12:11 PM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.





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 05:26 AM
How to pass parameter to sub-report . azeerum Access 1 January 3rd, 2005 04: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 02:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.