Click here to Skip to main content
15,914,795 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to preview Report without using crystel reports and export it to any format Pin
nick_net124-May-06 23:27
nick_net124-May-06 23:27 
AnswerRe: How to preview Report without using crystel reports and export it to any format Pin
Leeland25-May-06 4:37
Leeland25-May-06 4:37 
AnswerRe: How to preview Report without using crystel reports and export it to any format [modified] Pin
Robo1626-May-06 7:11
Robo1626-May-06 7:11 
QuestionRPC problem Pin
nitin_ion24-May-06 23:10
nitin_ion24-May-06 23:10 
AnswerRe: RPC problem Pin
Leeland25-May-06 8:44
Leeland25-May-06 8:44 
GeneralRe: RPC problem Pin
nitin_ion25-May-06 20:12
nitin_ion25-May-06 20:12 
Questionhow to get the list Parameters collection of Stored Procedures Pin
Harshad Pednekar24-May-06 23:08
Harshad Pednekar24-May-06 23:08 
AnswerRe: how to get the list Parameters collection of Stored Procedures Pin
vij200525-May-06 0:34
vij200525-May-06 0:34 
You can pass the parameters into a hashtable. And then create a loop to pass these parameters one by one to it. You can use following example:

Public Function SelectEmployee(ByVal OracleConn As String, ByVal SPName As String, ByVal crOutput As String, Optional ByVal ParamTable As Hashtable = Nothing) As DataSet
Dim m_objDA As New OracleDataAdapter
Dim m_objDS As New DataSet
Dim m_objDBCmd As OracleCommand
Dim m_objDE As IDictionaryEnumerator
Dim Conn As New OracleConnection(OracleConn)

Try
m_objDBCmd = New OracleCommand
m_objDBCmd.Connection = Conn
m_objDBCmd.CommandType = CommandType.StoredProcedure
m_objDBCmd.CommandText = SPName

If Not IsNothing(ParamTable) Then
m_objDE = ParamTable.GetEnumerator
While m_objDE.MoveNext
m_objDBCmd.Parameters.Add(m_objDE.Key, m_objDE.Value)
End While
End If
m_objDBCmd.Parameters.Add(crOutput, OracleType.Cursor).Direction = ParameterDirection.Output
m_objDA.SelectCommand = m_objDBCmd
m_objDA.Fill(m_objDS)
Catch ex As Exception
'm_objDS = Nothing
Throw ex
Finally
m_objDBCmd = Nothing
m_objDA = Nothing
End Try
Return m_objDS
End Function


QuestionRe: how to get the list Parameters collection of Stored Procedures Pin
Harshad Pednekar25-May-06 20:44
Harshad Pednekar25-May-06 20:44 
QuestionMS ACCESS DataBase [modified] Pin
himuskanhere24-May-06 20:19
himuskanhere24-May-06 20:19 
AnswerRe: MS ACCESS DataBase [modified] Pin
Nibu babu thomas24-May-06 23:33
Nibu babu thomas24-May-06 23:33 
AnswerRe: MS ACCESS DataBase [modified] Pin
J4amieC24-May-06 23:38
J4amieC24-May-06 23:38 
QuestionShow Tab. Pin
isfufushah24-May-06 18:55
isfufushah24-May-06 18:55 
AnswerRe: Show Tab. Pin
Christian Graus24-May-06 23:15
protectorChristian Graus24-May-06 23:15 
QuestionRe: Show Tab. Pin
isfufushah25-May-06 0:03
isfufushah25-May-06 0:03 
AnswerRe: Show Tab. Pin
Christian Graus25-May-06 0:44
protectorChristian Graus25-May-06 0:44 
GeneralRe: Show Tab. Pin
isfufushah25-May-06 2:39
isfufushah25-May-06 2:39 
GeneralRe: Show Tab. [modified] Pin
J4amieC25-May-06 2:43
J4amieC25-May-06 2:43 
QuestionMultiThread Pin
codeadair24-May-06 18:00
codeadair24-May-06 18:00 
AnswerRe: MultiThread Pin
Nibu babu thomas24-May-06 23:34
Nibu babu thomas24-May-06 23:34 
GeneralRe: MultiThread Pin
codeadair24-May-06 23:44
codeadair24-May-06 23:44 
GeneralRe: MultiThread Pin
Nibu babu thomas24-May-06 23:52
Nibu babu thomas24-May-06 23:52 
GeneralRe: MultiThread [modified] Pin
codeadair25-May-06 0:10
codeadair25-May-06 0:10 
GeneralRe: MultiThread [modified] Pin
Nibu babu thomas25-May-06 0:16
Nibu babu thomas25-May-06 0:16 
GeneralRe: MultiThread [modified] Pin
codeadair25-May-06 0:21
codeadair25-May-06 0:21 

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.