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
Register
| FAQ | Members List | Calendar | 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 7th, 2005, 06:59 AM
Registered User
 
Join Date: Oct 2005
Location: Goa, Goa, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to irfanthegame
Default changing Password dynamically in crystal report

Could any one please tell me how do i change the parameters dynamically for a crystal report.

for the first time i am setting the parameter value like this :

dd1.SetParameterValue("id",12);
CrystalReportViewer1.ReportSource=dd1;

it works fine..
but on click of a button "refresh" i want to set the parameter value to a value from textBox "EmpID"
and Re Bind the CrystalReportViewer
i am using this code:


private void Refresh_Click(object sender, System.EventArgs e)
{
CrystalReport3 cr=new CrystalReport3();
int id=int.Parse(EmpID.Text);
cr.SetParameterValue("id",14);
CrystalReportViewer1.ReportSource=cr;
CrystalReportViewer1.DataBind() ;

}


its not working!!
whats wrong or whats missing
Plz help
thanks in advance
Irfan


Reply With Quote
Reply


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
Creating Crystal Report Dynamically syedjavid Crystal Reports 21 April 30th, 2008 08:06 AM
Crystal Report Dynamically vgsgowrisankar .NET Framework 2.0 4 April 11th, 2008 10:17 AM
dynamically generate crystal report s_sanks Crystal Reports 0 March 3rd, 2008 07:19 AM
Crystal Report Changing Orientation garrysmith68 Beginning VB 6 0 June 6th, 2006 06:42 AM
Changing Crystal report display dynamically Sujith Manuel Crystal Reports 0 December 17th, 2004 01:59 AM



All times are GMT -4. The time now is 10:18 AM.


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