|
-
May 8th, 2002, 11:03 AM
#1
Thread Starter
Fanatic Member
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:
Dim sBuffer As String
sBuffer = StrConv(LoadResData(101, "XLs"), vbUnicode)
Open App.Path & "\LOG.XLS" For Output As #1
Print #1, sBuffer
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
-
May 8th, 2002, 11:57 AM
#2
-= B u g S l a y e r =-
yes, text file, sbuffer will then contain text and u can handle that without saving it.
-
May 8th, 2002, 12:05 PM
#3
Thread Starter
Fanatic Member
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
-
May 8th, 2002, 12:42 PM
#4
-= B u g S l a y e r =-
-
May 8th, 2002, 12:46 PM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|