Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 Search this Thread Display Modes
  #1 (permalink)  
Old September 16th, 2003, 02:41 PM
Authorized User
Join Date: Aug 2003
Location: jeddah, , Saudi Arabia.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass multiple parameters to CR 9

Hi all
How can i pass multiple parameters to Crystal Report 9
in Dot net framework latest version 2003,
in previous version i use to pass parameters using
the SetParametervalues method of ReportDocument Class.
But in this version i did not found this method in the
reportdocuement class.

Thanks in advance

Reply With Quote
  #2 (permalink)  
Old September 17th, 2003, 05:50 AM
Authorized User
Join Date: Aug 2003
Location: jeddah, , Saudi Arabia.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts

i Done it,this is the method to pass the parameters to CR 9
    private void SetParameterFieldsNew(CrystalDecisions.CrystalRepo rts.Engine.ReportDocument rptDoc,string ParamNameList,string ParamValuesList)
                    string[] strParamNames = ParamNameList.Split (new char[] {Convert.ToChar(44)});
                    string[] strParamValues = ParamValuesList.Split (new char[] {Convert.ToChar(44)});

            foreach( string N in strParamNames)
                foreach(string V in strParamValues)
                    CrystalDecisions.Shared.ParameterValues objParamField;
                    CrystalDecisions.Shared.ParameterDiscreteValue objDiscreteValue;
                    for(int Index = 0 ; Index < rptDoc.DataDefinition.ParameterFields.Count-1 ; Index++)
                        objParamField = new CrystalDecisions.Shared.ParameterValues();
                        objDiscreteValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
                        objDiscreteValue.Value = V;




Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
How to pass parameter value to CR SQL Command vijaykumartaduri BOOK: Professional Crystal Reports for VS.NET 3 July 31st, 2007 12:13 AM
Can I pass parameters when creating files via CR linjader Classic ASP Databases 0 July 26th, 2006 03:48 AM
Pass Date parameter from jsp to CR ray5 Crystal Reports 0 September 6th, 2005 09:23 PM
Pass Multiple Parameters from C# to SQL RS ms_code_bsuter BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 July 25th, 2005 06:34 PM
how to pass the data from dataset to CR? zouky Crystal Reports 0 November 8th, 2004 02:49 AM

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

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