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. C / C++ / MFC
  4. Put data into excel

Put data into excel

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
7 Posts 6 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.
  • I Offline
    I Offline
    Igor Kondrasovas
    wrote on last edited by
    #1

    Hi All, I'm trying to do simple aplication to read data from the serial port and put it into an excel spreadsheet. Acctually I'm not sure about what should I use. I rather use VC++. Could you give me just some advice to wich way should I go? Thanks in advance, Igor Kondrasovas

    X P H R 4 Replies Last reply
    0
    • I Igor Kondrasovas

      Hi All, I'm trying to do simple aplication to read data from the serial port and put it into an excel spreadsheet. Acctually I'm not sure about what should I use. I rather use VC++. Could you give me just some advice to wich way should I go? Thanks in advance, Igor Kondrasovas

      X Offline
      X Offline
      xxhimanshu
      wrote on last edited by
      #2

      hi, check this link, here the author is converting CSV to excel this might be of some help to u.. http://www.codeguru.com/mfc\_database/CSpreadSheet.html cheers.. :laugh::laugh: Himanshu

      1 Reply Last reply
      0
      • I Igor Kondrasovas

        Hi All, I'm trying to do simple aplication to read data from the serial port and put it into an excel spreadsheet. Acctually I'm not sure about what should I use. I rather use VC++. Could you give me just some advice to wich way should I go? Thanks in advance, Igor Kondrasovas

        P Offline
        P Offline
        peterchen
        wrote on last edited by
        #3

        The easiest would probably be an Excel VBScript "macro" using the MSComm object for reading from serial device. (It's amazing how much you can do in this crude language/environment...) Another option would be generating a .csv file (Comma-separated Values), which excel tends to open nicely (if lannguage settings are correct)


        Those who not hear the music think the dancers are mad.  [sighist] [Agile Programming]

        A 1 Reply Last reply
        0
        • I Igor Kondrasovas

          Hi All, I'm trying to do simple aplication to read data from the serial port and put it into an excel spreadsheet. Acctually I'm not sure about what should I use. I rather use VC++. Could you give me just some advice to wich way should I go? Thanks in advance, Igor Kondrasovas

          H Offline
          H Offline
          HENDRIK R
          wrote on last edited by
          #4

          You can find an easy start to Excel and ODBC here. Have a look!

          1 Reply Last reply
          0
          • P peterchen

            The easiest would probably be an Excel VBScript "macro" using the MSComm object for reading from serial device. (It's amazing how much you can do in this crude language/environment...) Another option would be generating a .csv file (Comma-separated Values), which excel tends to open nicely (if lannguage settings are correct)


            Those who not hear the music think the dancers are mad.  [sighist] [Agile Programming]

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            Is it possible to use MSComm object on .NET? I tried to convert an app from VB6 to .NET and I got erros, because the component could not be located... Cheers Igor

            P 1 Reply Last reply
            0
            • A Anonymous

              Is it possible to use MSComm object on .NET? I tried to convert an app from VB6 to .NET and I got erros, because the component could not be located... Cheers Igor

              P Offline
              P Offline
              peterchen
              wrote on last edited by
              #6

              As it's a fairly "vanilla" COM object, it should work perfectly (just make sure it's registered on the system, and you added a reference to it to the project). I haven't tried it, though. However, under .NET should be "more native" methods to talk to the serial port. No idea which, but would probably be worth doing (if you care about performance, or want to get rid of the mscomm.dll dependency)


              Those who not hear the music think the dancers are mad.  [sighist] [Agile Programming]

              1 Reply Last reply
              0
              • I Igor Kondrasovas

                Hi All, I'm trying to do simple aplication to read data from the serial port and put it into an excel spreadsheet. Acctually I'm not sure about what should I use. I rather use VC++. Could you give me just some advice to wich way should I go? Thanks in advance, Igor Kondrasovas

                R Offline
                R Offline
                Ryan B
                wrote on last edited by
                #7

                1.) CP has some great serial comm tutorials / classes / articles. 2.) you definately either want to write a dll or COM application and export your functions / interfaces for vb to use. - I did something similar, i created a data aquisition application in VBA (Excel) that uses a dll i wrote in straight c. The dll is a socket client that connects to intelligent hardware and collects data. I had to reformat the data in the DLL so I could export it to excel, which was a bitch, but in the end it worked perfectly. You should have no trouble what so ever. If your going the DLL route, be sure to look into IDL. Ryan Baillargeon

                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