Results 1 to 5 of 5

Thread: Resource and excel/txt

  1. #1

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    Resource and excel/txt

    Hi.

    I want to open an excel file (or access file) I have included in my
    exe via a resource file. The file contains confidential pricing.

    I have found a snipit, but what it does is saves
    the excel resouce to disk. This is unacceptable.

    Here is the snipit.

    VB Code:
    1. Dim sBuffer As String
    2.     sBuffer = StrConv(LoadResData(101, "XLs"), vbUnicode)
    3.     Open App.Path & "\LOG.XLS" For Output As #1
    4.     Print #1, sBuffer
    5.     Close #1

    WHAT i need to do is find a way to access the info in that resource file ...but NOT saving it to disk first....

    Is this possible. ( I am thinking if it is txt file. it would be easier...
    But i dont know)

    Any suggestions?

    Seahag

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    yes, text file, sbuffer will then contain text and u can handle that without saving it.
    -= a peet post =-

  3. #3

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Does the code look familiar? LOL,
    Eekk.. the data is in chart form.. (rows and columns)

    Cant i pass sBuffer to a object variable???
    if not..

    Any suggestion how that would work with a txt file?

    Thnks in advance..
    Sehag

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    familiar yes

    No way to pass it directly to the object that I know of....sorry

    could u not export it to a comma or other type of seperated text file, then add that to the resource?

    then u can just use split and conquer to get control over the content?

    I know to little about the data and how u want to use it in order to give u any good sample

    -= a peet post =-

  5. #5

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Ya.. i guess that would be the simplist..

    I kinda get the gist of what i need to do..

    I guess it just comes down to formatting.

    I need a list ..


    Spinner machine Swing Machine Tumbler machin Dust collector
    Machine
    Wheel assembly
    panel Cost
    Abrasive handling

    (wont format correctly)

    Basic Table.. And just only one..

    Thnks again

    Seahag

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width