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. reading non text files in vb.net

reading non text files in vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
5 Posts 2 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.
  • T Offline
    T Offline
    the bombardier
    wrote on last edited by
    #1

    hi i want to read an xls file from vb.net and then write it to a text file.. obviously using streamreader gives me garbled output..is it possible to get meaningful data or am i wasting my time? a few pointers please??

    T 2 Replies Last reply
    0
    • T the bombardier

      hi i want to read an xls file from vb.net and then write it to a text file.. obviously using streamreader gives me garbled output..is it possible to get meaningful data or am i wasting my time? a few pointers please??

      T Offline
      T Offline
      the bombardier
      wrote on last edited by
      #2

      in fact im more interested in getting the macro code from excel files..wat i mean is i am interested in reading the macro code for some purposes. -- modified at 8:43 Friday 12th January, 2007

      D 1 Reply Last reply
      0
      • T the bombardier

        in fact im more interested in getting the macro code from excel files..wat i mean is i am interested in reading the macro code for some purposes. -- modified at 8:43 Friday 12th January, 2007

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

        You're pretty much wasting your time using a StreamReader, of any other file operation. Office files, prior to Office 12, used a multiple-stream format that was very difficult to decode manually. Your only hope is to use Automation to start an Excel instance, have it load the XLS file, then you can use the automation interface to get that scripts you want. No, I don't have any examples.

        Dave Kreskowiak Microsoft MVP - Visual Basic

        T 1 Reply Last reply
        0
        • D Dave Kreskowiak

          You're pretty much wasting your time using a StreamReader, of any other file operation. Office files, prior to Office 12, used a multiple-stream format that was very difficult to decode manually. Your only hope is to use Automation to start an Excel instance, have it load the XLS file, then you can use the automation interface to get that scripts you want. No, I don't have any examples.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          T Offline
          T Offline
          the bombardier
          wrote on last edited by
          #4

          thanks..

          1 Reply Last reply
          0
          • T the bombardier

            hi i want to read an xls file from vb.net and then write it to a text file.. obviously using streamreader gives me garbled output..is it possible to get meaningful data or am i wasting my time? a few pointers please??

            T Offline
            T Offline
            the bombardier
            wrote on last edited by
            #5

            i got a solution..i automated excel to export the macros,which i could read easily as any normal text files..:cool:

            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