Click here to Skip to main content
15,915,975 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: about listview in vb.net 2005 Pin
Mbire11-Oct-07 2:13
Mbire11-Oct-07 2:13 
QuestionRegestring Java Web Services in .Net Pin
Mbire11-Oct-07 1:33
Mbire11-Oct-07 1:33 
AnswerRe: Regestring Java Web Services in .Net Pin
Mbire11-Oct-07 3:48
Mbire11-Oct-07 3:48 
Questionexport data from vb6 to excel Pin
srishtisoftwares@rediffmail.com11-Oct-07 1:15
srishtisoftwares@rediffmail.com11-Oct-07 1:15 
AnswerRe: export data from vb6 to excel Pin
Mbire11-Oct-07 2:41
Mbire11-Oct-07 2:41 
Questionauto complete text box Pin
ganash11-Oct-07 1:13
ganash11-Oct-07 1:13 
AnswerRe: auto complete text box Pin
Tom Deketelaere11-Oct-07 2:03
professionalTom Deketelaere11-Oct-07 2:03 
QuestionPassing Parameters to Crystal Report at Runtime Pin
saneng11-Oct-07 1:02
saneng11-Oct-07 1:02 
Hello

I have to pass parameters to crystal report at runtime,i have already created reports in crystal report 9,below is my code
Dim reportdocument As New ReportDocument
Dim strRptPath As String
strRptPath = "d:\Attendance System\Attendance Reports\TodayAbsRpt.rpt"

reportdocument.Load(strRptPath)
Dim paramdefs As ParameterFieldDefinitions
Dim paramdef As ParameterFieldDefinition
Dim paramvalues As New ParameterValues
Dim paramdisval As New ParameterDiscreteValue
Dim todayval As Long

todayval = Me.DTPsdate.Text.Substring(6, 4) & Mid(Me.DTPsdate.Text, 4, 2) & Me.DTPsdate.Text.Substring(0, 2)
paramdefs = reportdocument.DataDefinition.ParameterFields
For Each paramdef In paramdefs
With paramdef
Select Case .ParameterFieldName
Case "DpttNm"
paramdisval.Value = "'" & Me.cmbDptt.Text & "'"
paramvalues.Add(paramdisval)
paramdef.ApplyCurrentValues(paramvalues)
Case "pDate"

paramdisval.Value = todayval
paramvalues.Add(paramdisval)
paramdef.ApplyCurrentValues(paramvalues)


End Select
End With
Next

Dim frm As New FrmRpt

frm.crViewer1.reportSource=reportdocument

frm.Show()

the crystal report viewet is on another form ....the problem is that the crystal
report viewer doe'snt load the report
please help me ur corporation is highly appreciated
thanks
AnswerRe: Passing Parameters to Crystal Report at Runtime Pin
Muhammad Shahid Farooq29-Oct-07 11:17
professionalMuhammad Shahid Farooq29-Oct-07 11:17 
QuestionJoining arrays Pin
Benny_Lava11-Oct-07 0:56
Benny_Lava11-Oct-07 0:56 
AnswerRe: Joining arrays Pin
Mbire11-Oct-07 1:42
Mbire11-Oct-07 1:42 
AnswerRe: Joining arrays Pin
Dave Kreskowiak11-Oct-07 3:50
mveDave Kreskowiak11-Oct-07 3:50 
QuestionA Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 0:24
professionalVimalsoft(Pty) Ltd11-Oct-07 0:24 
AnswerRe: A Function that Accept Parameters and Return ds Pin
Colin Angus Mackay11-Oct-07 0:30
Colin Angus Mackay11-Oct-07 0:30 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Christian Graus11-Oct-07 0:44
protectorChristian Graus11-Oct-07 0:44 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 0:44
professionalVimalsoft(Pty) Ltd11-Oct-07 0:44 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Colin Angus Mackay11-Oct-07 2:20
Colin Angus Mackay11-Oct-07 2:20 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 2:36
professionalVimalsoft(Pty) Ltd11-Oct-07 2:36 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Colin Angus Mackay11-Oct-07 2:50
Colin Angus Mackay11-Oct-07 2:50 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 3:09
professionalVimalsoft(Pty) Ltd11-Oct-07 3:09 
Questionsetting up Crystal Pin
twsted f811-Oct-07 0:21
twsted f811-Oct-07 0:21 
AnswerRe: setting up Crystal Pin
ChandraRam11-Oct-07 2:11
ChandraRam11-Oct-07 2:11 
Question()_send email in visual studio .net 2005 Pin
Suhail Ali10-Oct-07 21:39
Suhail Ali10-Oct-07 21:39 
AnswerRe: ()_send email in visual studio .net 2005 Pin
Christian Graus10-Oct-07 22:25
protectorChristian Graus10-Oct-07 22:25 
Questiondoubts in abstract class and interface Pin
VG Ramanan10-Oct-07 21:26
VG Ramanan10-Oct-07 21:26 

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.