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. Who can help me?

Who can help me?

Scheduled Pinned Locked Moved Visual Basic
databasehelpquestion
10 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.
  • W Offline
    W Offline
    Wlink
    wrote on last edited by
    #1

    HI ALL, I WOULD LIKEE TO EXPORT THE ACCESS DATABASE TABLE DATA IN EXCEL FROM VB6.0.I USED ADO REFERENCE TO CONNECT THE DATABASE.HOPE FOR QUICK SOLUTION. PAWAN -- modified at 5:12 Wednesday 22nd August, 2007

    A V 2 Replies Last reply
    0
    • W Wlink

      HI ALL, I WOULD LIKEE TO EXPORT THE ACCESS DATABASE TABLE DATA IN EXCEL FROM VB6.0.I USED ADO REFERENCE TO CONNECT THE DATABASE.HOPE FOR QUICK SOLUTION. PAWAN -- modified at 5:12 Wednesday 22nd August, 2007

      A Offline
      A Offline
      Ahamed Azeem
      wrote on last edited by
      #2

      Hi, I am using oracle to connect to the db and I have written the below code in vb.net. Any way u can try it and feedback me. imports Microsoft.Office.Interop Dim xl As New Excel.Application xl.Workbooks.Add() xl.ActiveSheet.Name = "Cash Report" xl.Visible = True j = 1 l = k = 0 For i = 1 To n - 1 j = 1 l = 0 For l = 0 To 4 xl.Cells(i, j) = ds.Tables(0).Rows(k)(l) j = j + 1 Next k = k + 1 Next

      Ahamed Azeem Software Programmer Saudi Postal Technologies – Riyadh

      W 1 Reply Last reply
      0
      • A Ahamed Azeem

        Hi, I am using oracle to connect to the db and I have written the below code in vb.net. Any way u can try it and feedback me. imports Microsoft.Office.Interop Dim xl As New Excel.Application xl.Workbooks.Add() xl.ActiveSheet.Name = "Cash Report" xl.Visible = True j = 1 l = k = 0 For i = 1 To n - 1 j = 1 l = 0 For l = 0 To 4 xl.Cells(i, j) = ds.Tables(0).Rows(k)(l) j = j + 1 Next k = k + 1 Next

        Ahamed Azeem Software Programmer Saudi Postal Technologies – Riyadh

        W Offline
        W Offline
        Wlink
        wrote on last edited by
        #3

        in vb 6.0 we can use the referance of the excel library.i used the excel library and export the data but my problm is that i have to already create excel file in certain location and display the record in that file .but i want to export the data with out creating excel file already.(have u undestood or not if not noty fy me)

        A 1 Reply Last reply
        0
        • W Wlink

          in vb 6.0 we can use the referance of the excel library.i used the excel library and export the data but my problm is that i have to already create excel file in certain location and display the record in that file .but i want to export the data with out creating excel file already.(have u undestood or not if not noty fy me)

          A Offline
          A Offline
          Ahamed Azeem
          wrote on last edited by
          #4

          Do u need to update the data into the same excel which was created earlier? -- modified at 6:12 Wednesday 22nd August, 2007

          Ahamed Azeem Software Programmer Saudi Postal Technologies – Riyadh

          W 1 Reply Last reply
          0
          • A Ahamed Azeem

            Do u need to update the data into the same excel which was created earlier? -- modified at 6:12 Wednesday 22nd August, 2007

            Ahamed Azeem Software Programmer Saudi Postal Technologies – Riyadh

            W Offline
            W Offline
            Wlink
            wrote on last edited by
            #5

            I DO NOT LIKE TO USE THE EARLIER CREATED EXCEL FILE.I WANT TO CREATE NEW.

            A 1 Reply Last reply
            0
            • W Wlink

              I DO NOT LIKE TO USE THE EARLIER CREATED EXCEL FILE.I WANT TO CREATE NEW.

              A Offline
              A Offline
              Ahamed Azeem
              wrote on last edited by
              #6

              Hi, The following code snippet will create a new excel file. Dim xl As New Excel.Application xl.Workbooks.Add() xl.Visible = True

              Ahamed Azeem Software Programmer Saudi Postal Technologies – Riyadh

              W 1 Reply Last reply
              0
              • A Ahamed Azeem

                Hi, The following code snippet will create a new excel file. Dim xl As New Excel.Application xl.Workbooks.Add() xl.Visible = True

                Ahamed Azeem Software Programmer Saudi Postal Technologies – Riyadh

                W Offline
                W Offline
                Wlink
                wrote on last edited by
                #7

                hi sorry that code is not worked.simply i want to expor the data in excel by using vb 6.0 .my data base is MS Access.

                A V 2 Replies Last reply
                0
                • W Wlink

                  hi sorry that code is not worked.simply i want to expor the data in excel by using vb 6.0 .my data base is MS Access.

                  A Offline
                  A Offline
                  Ahamed Azeem
                  wrote on last edited by
                  #8

                  Hi, Please import the reference of microsoft excel(its a com file) into your application and then try. Because its working fine with my application.

                  Ahamed Azeem Software Programmer Saudi Postal Technologies – Riyadh

                  1 Reply Last reply
                  0
                  • W Wlink

                    HI ALL, I WOULD LIKEE TO EXPORT THE ACCESS DATABASE TABLE DATA IN EXCEL FROM VB6.0.I USED ADO REFERENCE TO CONNECT THE DATABASE.HOPE FOR QUICK SOLUTION. PAWAN -- modified at 5:12 Wednesday 22nd August, 2007

                    V Offline
                    V Offline
                    Vasudevan Deepak Kumar
                    wrote on last edited by
                    #9

                    Your CAPS-LOCK key seems to be most probably on. Typing in ALL-CAPS normally indicates a bad temper (viz) shouting. It may also indicates an amateurish attitude in a public discussion forum.

                    Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                    1 Reply Last reply
                    0
                    • W Wlink

                      hi sorry that code is not worked.simply i want to expor the data in excel by using vb 6.0 .my data base is MS Access.

                      V Offline
                      V Offline
                      Vasudevan Deepak Kumar
                      wrote on last edited by
                      #10

                      Did you try using the DTS Wizard option that comes with SQLServer. There is an option to transfer between heterogenous data sources in it.

                      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                      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