Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: passing parameters Post Reply Post New Topic
Author Message
davel
Newbie
Newbie


Joined: 02 Jul 2009
Location: United States
Online Status: Offline
Posts: 2
Quote davel Replybullet Topic: passing parameters
    Posted: 02 Jul 2009 at 7:22am
I want to pass some parameters from C# code to a Crystal Report.
How do I do this?
 
Thanks,
 
DaveBig%20smile
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 21 Jul 2009 at 6:33am

rptFS.SetParameterValue("param", Me.cboCompany.Text.Trim & " / " & Me.cboDivision.Text.Trim)

sure it's in vb, but translating is easy.  the "param" has to be set up as a parmeter in the report...you can call it anything you want, just reference it by the name given in the report.  rptFS is just the instance variable of the report.
HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.