Click here to Skip to main content
15,912,312 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionError in IE11 for website automation using vb6 Pin
srikrishnathanthri27-Mar-16 18:41
srikrishnathanthri27-Mar-16 18:41 
AnswerRe: Error in IE11 for website automation using vb6 Pin
Chris Quinn3-Apr-16 21:56
Chris Quinn3-Apr-16 21:56 
AnswerRe: Error in IE11 for website automation using vb6 Pin
Mycroft Holmes4-Apr-16 14:20
professionalMycroft Holmes4-Apr-16 14:20 
AnswerRe: Error in IE11 for website automation using vb6 Pin
CHill604-Apr-16 22:40
mveCHill604-Apr-16 22:40 
QuestionCalculate networkdays in vb.net, can someone help me? Pin
Real Corks27-Mar-16 11:57
Real Corks27-Mar-16 11:57 
GeneralRe: Calculate networkdays in vb.net, can someone help me? Pin
Sascha Lefèvre27-Mar-16 12:29
professionalSascha Lefèvre27-Mar-16 12:29 
AnswerRe: Calculate networkdays in vb.net, can someone help me? Pin
CHill6027-Mar-16 12:44
mveCHill6027-Mar-16 12:44 
Questionsum a field in database, can someone help me? Pin
Real Corks27-Mar-16 4:21
Real Corks27-Mar-16 4:21 
AnswerRe: sum a field in database, can someone help me? Pin
Sascha Lefèvre27-Mar-16 4:58
professionalSascha Lefèvre27-Mar-16 4:58 
GeneralRe: sum a field in database, can someone help me? Pin
Real Corks27-Mar-16 9:05
Real Corks27-Mar-16 9:05 
GeneralRe: sum a field in database, can someone help me? Pin
Sascha Lefèvre27-Mar-16 9:42
professionalSascha Lefèvre27-Mar-16 9:42 
GeneralRe: sum a field in database, can someone help me? Pin
Real Corks27-Mar-16 9:47
Real Corks27-Mar-16 9:47 
GeneralRe: sum a field in database, can someone help me? Pin
Sascha Lefèvre27-Mar-16 10:12
professionalSascha Lefèvre27-Mar-16 10:12 
GeneralRe: sum a field in database, can someone help me? Pin
Real Corks27-Mar-16 11:29
Real Corks27-Mar-16 11:29 
Questioncan someone help me to fix this? because i cannot make another xml file only the employee information Pin
Real Corks17-Mar-16 17:47
Real Corks17-Mar-16 17:47 
VB.NET
i am using vb.net and mysql database and creating crystal report using xml file.


<pre lang="VB.NET">
Private Sub ToolStripButton1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click
        conn.ConnectionString = &quot;server=localhost;userid=root;password=;database=amwps&quot;

        If ToolStripComboBox1.SelectedItem = &quot;Employee Information&quot; Then
            Dim daset As New DataSet
            strSql = &quot;SELECT * FROM tbl_employeeinfo&quot;
            conn.Open()
            dadapter.SelectCommand = New MySqlCommand(strSql, conn)
            dadapter.Fill(daset)
            daset.WriteXml(CurDir() &amp; &quot;\xmlEmpSummary.xml&quot;, XmlWriteMode.WriteSchema)
            conn.Close()
        ElseIf ToolStripComboBox1.SelectedItem = &quot;Attendance&quot; Then
            Dim daset As New DataSet
            strSql = &quot;SELECT * FROM tbl_attendance where dates = &#39;&quot; &amp; ToolStripTextBox1.Text &amp; &quot;&#39;&quot;
            conn.Open()
            dadapter.SelectCommand = New MySqlCommand(strSql, conn)
            dadapter.Fill(daset)
            daset.WriteXml(CurDir() &amp; &quot;\xmlAttSummary.xml&quot;, XmlWriteMode.WriteSchema)
            conn.Close()
        ElseIf ToolStripComboBox1.SelectedItem = &quot;Payroll&quot; Then
            Dim daset As New DataSet
            strSql = &quot;SELECT * FROM tbl_payroll where empNumber = &#39;&quot; &amp; ToolStripTextBox1.Text &amp; &quot;&#39;&quot;
            conn.Open()
            dadapter.SelectCommand = New MySqlCommand(strSql, conn)
            dadapter.Fill(daset)
            daset.WriteXml(CurDir() &amp; &quot;\xmlPayrollSummary.xml&quot;, XmlWriteMode.WriteSchema)
            conn.Close()
        Else
            MsgBox(&quot;Choose Filter!&quot;, MsgBoxStyle.Information, &quot;Summary Report&quot;)
        End If
    End Sub</pre>

AnswerRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
Patrice T17-Mar-16 20:49
mvePatrice T17-Mar-16 20:49 
GeneralRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
Real Corks20-Mar-16 21:43
Real Corks20-Mar-16 21:43 
GeneralRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
CHill6020-Mar-16 22:41
mveCHill6020-Mar-16 22:41 
GeneralRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
Real Corks27-Mar-16 4:18
Real Corks27-Mar-16 4:18 
GeneralRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
CHill6027-Mar-16 5:29
mveCHill6027-Mar-16 5:29 
GeneralRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
Richard MacCutchan21-Mar-16 1:10
mveRichard MacCutchan21-Mar-16 1:10 
GeneralRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
Dave Kreskowiak21-Mar-16 2:47
mveDave Kreskowiak21-Mar-16 2:47 
GeneralRe: can someone help me to fix this? because i cannot make another xml file only the employee information Pin
Richard MacCutchan21-Mar-16 2:55
mveRichard MacCutchan21-Mar-16 2:55 
Questionvb.net 2010 has sql error Pin
dcof16-Mar-16 12:28
dcof16-Mar-16 12:28 
AnswerRe: vb.net 2010 has sql error Pin
Mycroft Holmes16-Mar-16 23:08
professionalMycroft Holmes16-Mar-16 23:08 

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.