Click here to Skip to main content
15,892,965 members
Home / Discussions / C#
   

C#

 
QuestionA transparent label? Pin
drc_no126-Jan-06 6:57
drc_no126-Jan-06 6:57 
AnswerRe: A transparent label? Pin
James Gupta26-Jan-06 7:39
professionalJames Gupta26-Jan-06 7:39 
GeneralRe: A transparent label? Pin
drc_no126-Jan-06 7:41
drc_no126-Jan-06 7:41 
QuestionHelp! Access generic list data in App_code class from code behind Pin
Sue_NC26-Jan-06 6:38
Sue_NC26-Jan-06 6:38 
QuestionBeginners Question - User Controls Pin
MarkMokris26-Jan-06 6:36
MarkMokris26-Jan-06 6:36 
AnswerRe: Beginners Question - User Controls Pin
DigitalKing26-Jan-06 9:23
DigitalKing26-Jan-06 9:23 
QuestionModeless display - UserControl! Pin
DotNetInterest26-Jan-06 6:23
DotNetInterest26-Jan-06 6:23 
Questionvb convert c#, passing parameter crystal rpts Pin
steve1_rm200026-Jan-06 5:40
steve1_rm200026-Jan-06 5:40 
Hello,

I have a vb code which l am trying to convert to c# and having many problems with it. PFD = rpt.DataDefinition.ParameterFields.Item("@dt"). In c# there is not a parameterFields method called Item. So i am not sure how do l get the name of my parameter that is in the crystal report viewer.

Can anyone help me convert this code to c#.

<br />
Imports CrystalDecisions.Shared<br />
                Imports CrystalDecisions.CrystalReports.Engine<br />
                <br />
                Dim mDate As DataTime = #01/01/2005#<br />
                Dim rpt As New CrystalReport1<br />
                Dim PFD As ParameterFieldDefinition<br />
                Dim PValues As ParameterValues<br />
                Dim Parm As ParameterDiscreteValue<br />
<br />
                PValues = New ParameterValues<br />
<br />
                PFD = rpt.DataDefinition.ParameterFields.Item("@dt")<br />
                Parm = New ParameterDiscreteValue<br />
                Parm.Value = mDate<br />
                PValues.Add(Parm)<br />
                PFD.ApplyCurrentValues(PValues)<br />
<br />
                CrystalReportViewer1.ReportSource = rpt<br />

Thanks in advance,

Steve
AnswerRe: vb convert c#, passing parameter crystal rpts Pin
J4amieC26-Jan-06 5:53
J4amieC26-Jan-06 5:53 
NewsRe: vb convert c#, passing parameter crystal rpts Pin
steve1_rm200027-Jan-06 1:05
steve1_rm200027-Jan-06 1:05 
QuestionThe network Problem is Solved but..... Pin
snouto26-Jan-06 4:08
snouto26-Jan-06 4:08 
AnswerRe: The network Problem is Solved but..... Pin
J4amieC26-Jan-06 5:46
J4amieC26-Jan-06 5:46 
AnswerRe: The network Problem is Solved but..... Pin
leppie26-Jan-06 6:36
leppie26-Jan-06 6:36 
QuestionBinary converting byte to sbyte Pin
Marco [Stinger]26-Jan-06 3:45
Marco [Stinger]26-Jan-06 3:45 
AnswerRe: Binary converting byte to sbyte Pin
Guffa26-Jan-06 7:45
Guffa26-Jan-06 7:45 
GeneralRe: Binary converting byte to sbyte Pin
Marco [Stinger]26-Jan-06 11:13
Marco [Stinger]26-Jan-06 11:13 
GeneralRe: Binary converting byte to sbyte Pin
leppie26-Jan-06 11:39
leppie26-Jan-06 11:39 
AnswerRe: Binary converting byte to sbyte Pin
Guffa27-Jan-06 7:58
Guffa27-Jan-06 7:58 
GeneralRe: Binary converting byte to sbyte Pin
Marco [Stinger]27-Jan-06 22:21
Marco [Stinger]27-Jan-06 22:21 
GeneralRe: Binary converting byte to sbyte Pin
Saravanan_article26-Jan-06 19:00
Saravanan_article26-Jan-06 19:00 
QuestionThreadPool and Application Exit Pin
MrEyes26-Jan-06 3:39
MrEyes26-Jan-06 3:39 
AnswerRe: ThreadPool and Application Exit Pin
leppie26-Jan-06 6:39
leppie26-Jan-06 6:39 
Questionwhere is the windows namespace? Pin
GDavy26-Jan-06 2:41
GDavy26-Jan-06 2:41 
AnswerRe: where is the windows namespace? Pin
J4amieC26-Jan-06 3:11
J4amieC26-Jan-06 3:11 
GeneralRe: where is the windows namespace? Pin
GDavy26-Jan-06 3:39
GDavy26-Jan-06 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.