Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. email a attached file vb.net

email a attached file vb.net

Scheduled Pinned Locked Moved Visual Basic
csharp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14500218
    wrote on last edited by
    #1

    unable to create a win-from for mailing 2 many clients using vb.net

    C D 2 Replies Last reply
    0
    • M Member_14500218

      unable to create a win-from for mailing 2 many clients using vb.net

      C Offline
      C Offline
      Chris Quinn
      wrote on last edited by
      #2

      You have our sympathies.

      ========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================

      M 1 Reply Last reply
      0
      • M Member_14500218

        unable to create a win-from for mailing 2 many clients using vb.net

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Again. Without the code you're using and a description of any problem or errors you're having, it's impossible for anyone to help you. Stop typing as little as possible.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
        Dave Kreskowiak

        1 Reply Last reply
        0
        • C Chris Quinn

          You have our sympathies.

          ========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================

          M Offline
          M Offline
          Member_14500218
          wrote on last edited by
          #4

          Dear Friends at code project, The code i use is as follows

          Private Sub BtnExcel_Click(sender As Object, e As EventArgs) Handles btnExcel.Click
          Try

                  Dim MyConnection As System.Data.OleDb.OleDbConnection
                  Dim dataSet As System.Data.DataSet
                  Dim MyCommand As System.Data.OleDb.OleDbDataAdapter
                  Dim path As String = "C:\\Users\\Abhimanyu Singh\\Documents\\excel\\SalarySlip.xlsx"
          
                  MyConnection = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path + ";Extended Properties=Excel 12.0;")
                  MyCommand = New System.Data.OleDb.OleDbDataAdapter("select \* from \[salaryslip$\]", MyConnection)
          
                  dataSet = New System.Data.DataSet
                  MyCommand.Fill(dataSet)
                  DataGridView1.DataSource = dataSet.Tables(0)
          
                  MyConnection.Close()
              Catch ex As Exception
                  MsgBox(ex.Message.ToString)
              End Try
          
          End Sub
          

          End Class

          It works well for a single Excel file but if i try to open another fileit gives me error "OBJECT VARIABLE OR WITH BLOCK VARIABLE NOT SET" IAM NOT ABLE TO MOVE AHEAD PLEASE SUGEST REMIDIES

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups